The random number generator given by the teacher.
Needed to add a header for it to work.