View Single Post
Old 21st June 2010, 19:32   #48
Senior Member
Join Date: Feb 2008
Posts: 218
D'oh. Should've checked the rand() output. It used to be integers.

Sure enough, using floor() or int() fixes that.

Also, as a curiosity I found while testing, it seems that rand(0) will output the same as rand(1).

PS: You haven't heard from me the last 15 months or so, I think. My interests had wandered off.
Stahlregen is offline   Reply With Quote