We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is there a way? If not are there other codes that can do the trick?
int rn = int (random (33));
Will produce an integer in the range 0 to 32 inclusive.
Thanks!!
Another way to phrase: int rnd = (int) random(100) is: Range of 0 (inclusive) and 100 (exclusive). In short: from 0 to 99. ;;)
int rnd = (int) random(100)
Answers
int rn = int (random (33));
Will produce an integer in the range 0 to 32 inclusive.
Thanks!!
Another way to phrase:
int rnd = (int) random(100)
is:Range of 0 (inclusive) and 100 (exclusive). In short: from 0 to 99. ;;)