That's correct :)
rand returns a value less than the expression so will return an index in the range 0..100. Which is just what we needed -- woot!
In reply to Re^3: biased random number picking
by RichardK
in thread biased random number picking
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |