← Docs
kotlin-stdlib / kotlin.random / asJavaRandom

asJavaRandom

JVM
1.3
fun Random . asJavaRandom ( ) : Random
(source)

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

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 .