Trailmakers

Trailmakers

Not enough ratings
Random number generator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
111.594 KB
23 Dec, 2019 @ 7:39am
26 Dec, 2019 @ 11:48am
4 Change Notes ( view )

Subscribe to download
Random number generator

Description
Pseudorandom binary sequence (4bits pseudorandom number generator).

***Technical "boring" stuff: It implements a maximum length sequence (MLS) corresponding to the polynomial P(X) = X^4 + X + 1, so it has a chain of 15 numbers (from 0001 to 1111) "randomly" distributed until it starts repeating (or a binary chain output of 010010001111010).

*** How to use it:
- The green logic blocks corresponds to the binary representation of numbers from 1 to 15.
- The red logic block outputs "ON/OFF" pseudorandomly (see the chain above).
- The yellow block initializes the seed 1010 on the green blocks; different seeds can be chosen with the exception of 0000.
- The purple block is the "clock"/user input. Currently is programmed so the user hits space bar, it'll generate numbers constantly. The ideal scenario would be using an auxiliar module to get a number from the red gate when needed.

I hope you can make a good use of it =]

Example of an auxiliar module implementation for a guess ball game:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1944691891

A 7bit version of this circuit (goes from 1 to 127 and so, has a 127 digits length binary chain)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1944690455