set number to floor(random(1,24))*32
that just leaves out 1, I guess..This generates a number in range [32, 736], including both.
I need to generate random numbers from 1 to 768 in increments of 32. Any ideas?You can't reach 768 in increments of 32 when starting at 1.
Either extend the range by 1 to 769, then it's
floor(random(25)) * 32 + 1
Or reduce the range by 31 to 737, then it's
floor(random(24)) * 32 + 1
Or start at 0, then it's
floor(random(25)) * 32