A generic method that can return a random integer between 2 parameters like ruby does with rand(0..n).
rand(0..n)
Any suggestion?
to be super duper ))
fun rnd_int(min: Int, max: Int): Int { var max = max max -= min return (Math.random() * ++max).toInt() + min }