another random number bugfix