In reply to bachan21:
Since this is not really a random pattern, you should be able to debug your function alone by single stepping or printing intermediate results.
In reply to bachan21:
Since this is not really a random pattern, you should be able to debug your function alone by single stepping or printing intermediate results.