Inspiration

Trying to achieve as much randomness as possible. Though nothing can be purely random. Veritasium videos were a great inspiration!

What it does

The Program generates a random number from 0 to limit. Both inclusive.

How we built it

Used the part after decimals in time.time() to determine seeds and figure out two random primes to generate random numbers. Also includes a silly 39

Challenges we ran into

Trying to make it as random as possible. If the mods weren't a prime, It led to not a random integer. for eg. in limit 5, it always outputted 3 and 0. Had to read about random number generation and figured out why it needs to be a prime number

Accomplishments that we're proud of

Using two random prime numbers . And the program generates numbers with no particular order

What we learned

Randomness is hard to achieve. Maybe even impossible. Every random generator right now has to do some calculations. If we know the initial conditions, We can figure out what the next random number would be.

What's next for Random Number Generator

Making it more random. Adding one more prime into the factor may or may not have decreased the randomness and it would require a lot of statistical analysis to prove that some algorithm is more random than others.

Built With

Share this project:

Updates