随机数

基本类型 / 数字 / 整型

val value = (0..2).random()
//value is 0, 1 or 2     

println("value is $value")