Sie sind auf Seite 1von 2

Project 1.1.

9 Soldering:
The Random Number Generator (RNG)
Conclusion
If you were to use your Random Number Generator to play Monopoly during a family
game night, you would want the numbers rolled to be random and evenly distributed (i.e.,
the likelihood of rolling a one is the same as two, is the same as three, etc). How fair is your
Random Number Generator? To measure this, use the data table shown below to tally each
number displayed as the roll button is pressed one hundred times. After you complete the
tally, calculate the total count for each number and its distribution.

Number Tally Total Distribution


Rolled Count Count
IIIIIIIIIIIIIIIII 17 17%
1

IIIIIIIIIIIIIIIIII 18 18%
2

IIIIIIIIIII 11 11%
3

IIIIIIIIII 10 10%
4

IIIIIIIIII 10 10%
5

IIIIIIIIIIIIII 14 14%
6

1. How evenly distributed were the numbers for your Random Number
Generator? If your game was perfect, then each number should have come up
approximately 16.67% of the time. Do you think your Random Number Generator is
fair? Why or why not?
My random number generator was more favored in 1 and 2 than the rest of other numbers.

2. Another word for troubleshooting is debugging. Do a little research (Google,


of course) to determine the origin of the term debug and who was the person to coin
the phrase.
2014 Project Lead The Way, Inc.
Digital Electronics Project 1.1.9 Soldering: The Random Number Generator (RNG) Page 1
Grace Hopper first used the term debugging when a moth caused a glitch when it got stuck in
a computer.

2014 Project Lead The Way, Inc.


Digital Electronics Project 1.1.9 Soldering: The Random Number Generator (RNG) Page 2

Das könnte Ihnen auch gefallen