Changed random generator to please sniffy