@DSSafe(DSCat.SAFE_LIST) @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-09-03 15:01:20.138 -0400", hash_original_method = "5CC57CD7C5B9408E54C315A9BE16050C", hash_generated_method = "E0C143C4A578FB33A41B66D46278449D" ) fun nextInt(least: Int, bound: Int): Int { require(least < bound) return nextInt(bound - least) + least }
Returns a pseudorandom , uniformly distributed value between the given least value ( inclusive ) and bound ( exclusive ) .