SyntaxFix
Write A Post
Hire A Developer
Questions
Generate a random integer between from(inclusive) and to(exclusive)
from
to
import java.util.Random val random = Random() fun rand(from: Int, to: Int) : Int { return random.nextInt(to - from) + from }