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

asKotlinRandom

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

Creates a Kotlin Random instance that uses the specified java.util.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 .