More random number related bugs.