Code Red > AutoLISP (Vanilla / Visual)
Challenge: Old topic, New life - Random numbers
(1/1)
Hangman:
I was a wonder'n if I could bring back to life a topic brought up a while back.
The topic of random numbers.
Just for kicks, how would you go about writing a routine for running a "fair" coin toss ??
My thoughts were to get a random number from 0.0001 to 9.9999 with the 'less than' 5.0000 is heads and 'greater than' 5.0001 is tails.
Or how about a set of 6 sided dice ??
Prompt the user for a choice of one to two dice.
Each die roll generating a random number from 1 to 6.
How would you go about creating this ?? :lol:
Maverick®:
That sounds alot like an assignment I had in high school we had to write in basic. :-D
ronjonp:
Perhaps:
http://www.theswamp.org/index.php?topic=8203.0
Navigation
[0] Message Index
Go to full version