how do i randomize a number in a loop in kotlin code example
Example 1: kotlin random number
val randomNumber = (100..200).random()
Example 2: kotlin Random()
val rnds = (0..10).random() // generated random from 1 to 9 included
val randomNumber = (100..200).random()
val rnds = (0..10).random() // generated random from 1 to 9 included