Fixed problem with no randomization in Rand