I, am using in my Android app many times fun nextInt.
RandomNumber = Random.nextInt(0, Answears.size)
Here is part of documentation: fun next