LoginSignup
10
3

More than 5 years have passed since last update.

Kotlin入門 乱数の取得

Posted at

Kotlin入門 乱数の取得

sample.kt
import kotlin.random.Random

fun main(args: Array<String>) {
    val randomInt = Random.nextInt(10)

    println(randomInt)
}
10
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
3