← Docs
kotlin-stdlib / kotlin.random / java.util.Random

Extensions for java.util.Random

JVM
1.3

asKotlinRandom

Creates a Kotlin Random instance that uses the specified java.util.Random generator as a randomness source.

fun Random . asKotlinRandom ( ) : Random
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .