Inspiration

MLH LHD Day 2 challenge! The idea to write my own random number generator was an interesting one and so I decided to take this up.

What it does

Generates pseudo-random numbers which really are just a sequence of predetermined number but with a very large period so it appears to be random.

How I built it

I read about generators in an article featured in "Algorithms Unplugged, (Springer)" and decided to implement it as it was the simplest (!)

Challenges we ran into

I faced some MemoryError in the initial test run of the generator due to the very large value of m.

Accomplishments that we're proud of

I am proud to have researched and learned so much about what really goes under the hood of these random number generators which have such a widespread application in almost every field which employs computers.

What I learned

The details and algorithm that makes random number generator work.

What's next for RNG - A simple generator in Python

I would love to explore more nuanced algorithms to generate pseudo-random numbers and hopefully see this grow into a library.

Built With

Share this project:

Updates