Added code for a basic pseudorandom number generator