3m00
08-27-2002, 12:45 AM
I need to create a random number OF ONE DIGIT. can anyone help by telling me how I could do this?
|
Click to See Complete Forum and Search --> : random number help? 3m00 08-27-2002, 12:45 AM I need to create a random number OF ONE DIGIT. can anyone help by telling me how I could do this? X_console 08-27-2002, 01:10 AM In what language? binaryDigit 08-27-2002, 02:14 AM here's a random one digit number: 5 see bet you didn't even expect me to say 5 did you. it really would help to know which language you are using. and i'm bored, so i respond to posts that i don't really need to respond to. :D Rüpel 08-27-2002, 04:21 AM rand()%10 3m00 08-27-2002, 07:09 PM It was pretty late when I posted it, so the language is C. bwkaz 08-27-2002, 09:51 PM Originally posted by Rüpel rand()%10 This would be what you want then. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |