Rand class added.