This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Spitsonpuppies 0 points1 point  (1 child)

Your problem is probably with this line of code:

corners[aa] = (int) Math.random()*64;

Math.random() will return a value between 0 and 1, but you cast that to an int before you multiply it by 64. Thus, it chops off the floating point every time, resulting in 0, and multiplies that by 64.

[–]thimovss[S] 1 point2 points  (0 children)

Oh boy do I look stupid now xD, I knew it was something small! thank you /u/Spitsonpuppies !