Thanks to visit codestin.com Credit goes to kotlinlang.org
Gets the next random Int from the random number generator in the specified range.
Int
Generates an Int random value uniformly distributed in the specified range: from range.start inclusive to range.endInclusive inclusive.
range.start
range.endInclusive
if range is empty.
Thanks for your feedback!