Maybe extract to a method somewhere the random generator ?