Mail Archives: djgpp/1997/08/16/04:33:04
Matt McFadden wrote:
>
> Hi,
>
> How can I make a loop that returns or produces a random integer between
> 0-9 on each pass through the loop?
>
> Thank you,
> Matt
hi,
whatever generates your random number, mod it;
ie
random_number() % 10
this then returns the 'remainder of dividing by ten" which can only be
0-9
cya
--
NOTE: Remove The comment "NO_SPAM" To Reply via Email!
-------------------------------[ **NEW ADDRESS**
lpak1 AT ccds DOT cc DOT monash DOT edu DOT au]
" Hello Chevra Kadish, You Kill 'em, We Chill 'em " .----,
| oO |
HTTP://www-personal.monash.edu.au/~lpak1/ | \/ |
`----'
- Raw text -