Hello, I’am a beginner, I try to make an exercice from [developer.android] but I’m facing an issue.
here is my code
class Dice (private val numSides: Int) {
fun roll(): Int{
return (1..numSides).random()
}
}
it shows me : Unresolved reference: random()
please help me
thank you!