Write a random number generator for [0,7) using only a random number generator for [0,5). Ensure the results are uniformly distributed. |
||
|---|---|---|
| .. | ||
| decompress-xml.py | ||
| parser.py | ||
| rand7.py | ||
| tic-tac-toe-checker.py | ||
| unsorted-substring.py | ||
Write a random number generator for [0,7) using only a random number generator for [0,5). Ensure the results are uniformly distributed. |
||
|---|---|---|
| .. | ||
| decompress-xml.py | ||
| parser.py | ||
| rand7.py | ||
| tic-tac-toe-checker.py | ||
| unsorted-substring.py | ||