Uses better random generator