Renamed "next" to "rand".