
It creates pseudo-random 8-bit numbers using the XorShift32 PRNG.
Enter an 8-bit seed through the input pins using switches and start the design by resetting it. Press the clock button 3 times for the first valid 8-bit pseudo-random number to appear at the I/O pins. The seven segment display also shows a random hexadecimal digit based on the current state of the PRNG. By setting the input pins to a (binary) value between 1 and 16, you can influence the modulus used to generate a random digit. E.g. setting the input pins to 00000110 (6) creates random digits from 0 to 5. The standard modulus is 10.
Input switches, seven segment display for output, something to read the random outputs at the I/O pins..
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Input bit 0 | Seven segment output A | RNG output bit 0 |
| 1 | Input bit 1 | Seven segment output B | RNG output bit 1 |
| 2 | Input bit 2 | Seven segment output C | RNG output bit 2 |
| 3 | Input bit 3 | Seven segment output D | RNG output bit 3 |
| 4 | Input bit 4 | Seven segment output E | RNG output bit 4 |
| 5 | Input bit 5 | Seven segment output F | RNG output bit 5 |
| 6 | Input bit 6 | Seven segment output G | RNG output bit 6 |
| 7 | Input bit 7 | Seven segment output dot | RNG output bit 7 |