Hello. I would like to know if someone could possibly answer a few questions about rand(max)?
1. How exactly does it work? I mean, if I put rand(2), are the possible outcomes 0, 1, and 2, or just 1 and 2, or are they 0 and 1?
2. Can I use rand(1+1) so that I never get 0, but 1 or 2 instead?
That is all...Thank you for any help, and good night.
~Broken
1. How exactly does it work? I mean, if I put rand(2), are the possible outcomes 0, 1, and 2, or just 1 and 2, or are they 0 and 1?
2. Can I use rand(1+1) so that I never get 0, but 1 or 2 instead?
That is all...Thank you for any help, and good night.
~Broken