Originally posted by nihilismor
How can I randomly generate 6 numbers (prefferably 1-6) on a scientific calculator.
I was sitting in my calculus class inventing a pen and paper, single player, RPG game; this dice is the last facet I need.
Tossing dice on a desk in a calculus class tends to draw attention.
Enter an initial random number between -2 and 2, which you get from the current time and date. For example, if the time is 01:25 and the date is 03/08/2006, you may enter 0.012503082006.
Now square the number and subtract 2. For your random number take, say, always the 5th significant digit of the result (so if the result is -1.6734
173461374 your number is 4). If the number is not in the range 1-6, just square and subtract 2 again, until you get a number in that range.
To get the next random number, again square and subtract 2, etc.
This is not a very good random number generator but for playing a game is a calculus class it is good enough.