korlibs
Toggle table of contents
6.1.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
korlibs
korlibs-datastructure
/
korlibs.datastructure.random
/
FastRandom
Fast
Random
open
class
FastRandom
:
Random
Inheritors
Companion
Members
Constructors
Fast
Random
Link copied to clipboard
constructor
(
seed
:
Long
)
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
:
FastRandom
Functions
next
Bits
Link copied to clipboard
open
override
fun
nextBits
(
bitCount
:
Int
)
:
Int
next
Boolean
Link copied to clipboard
open
fun
nextBoolean
(
)
:
Boolean
next
Bytes
Link copied to clipboard
@
IgnorableReturnValue
open
fun
nextBytes
(
array
:
ByteArray
)
:
ByteArray
open
fun
nextBytes
(
size
:
Int
)
:
ByteArray
@
IgnorableReturnValue
open
fun
nextBytes
(
array
:
ByteArray
,
fromIndex
:
Int
,
toIndex
:
Int
)
:
ByteArray
next
Double
Link copied to clipboard
open
fun
nextDouble
(
)
:
Double
open
fun
nextDouble
(
until
:
Double
)
:
Double
open
fun
nextDouble
(
from
:
Double
,
until
:
Double
)
:
Double
next
Float
Link copied to clipboard
open
fun
nextFloat
(
)
:
Float
next
Int
Link copied to clipboard
open
override
fun
nextInt
(
)
:
Int
open
override
fun
nextInt
(
from
:
Int
,
until
:
Int
)
:
Int
open
fun
nextInt
(
until
:
Int
)
:
Int
next
Long
Link copied to clipboard
open
override
fun
nextLong
(
from
:
Long
,
until
:
Long
)
:
Long
open
fun
nextLong
(
)
:
Long
open
fun
nextLong
(
until
:
Long
)
:
Long