|
|
|
|
|
by ig1
6409 days ago
|
|
Generate two random numbers with your rand5 function, let them be the two digits of your base 5 number. Each number from 0-24 has a 1/25 chance of being picked. If the number is greater than 6 throw it away and repeat, otherwise you have your random number. |
|