toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.datastructure.random
/
FastRandom
/
Companion
Companion
object
Companion
:
FastRandom
Members
Members & Extensions
Properties
Default
Link copied to clipboard
val
Default
:
FastRandom
Functions
doubles
Link copied to clipboard
fun
Random
.
doubles
(
)
:
Sequence
<
Double
>
floats
Link copied to clipboard
fun
Random
.
floats
(
)
:
Sequence
<
Float
>
get
Link copied to clipboard
operator
fun
Random
.
get
(
rectangle
:
Rectangle
)
:
Point
operator
fun
<
T
>
Random
.
get
(
list
:
List
<
T
>
)
:
T
operator
fun
Random
.
get
(
range
:
IntRange
)
:
Int
operator
fun
Random
.
get
(
range
:
LongRange
)
:
Long
operator
fun
<
T
:
Interpolable
<
T
>
>
Random
.
get
(
l
:
T
,
r
:
T
)
:
T
operator
fun
Random
.
get
(
l
:
Angle
,
r
:
Angle
)
:
Angle
operator
fun
Random
.
get
(
min
:
Ratio
,
max
:
Ratio
)
:
Ratio
operator
fun
Random
.
get
(
min
:
Double
,
max
:
Double
)
:
Double
operator
fun
Random
.
get
(
min
:
Float
,
max
:
Float
)
:
Float
operator
fun
Random
.
get
(
min
:
Int
,
max
:
Int
)
:
Int
ints
Link copied to clipboard
fun
Random
.
ints
(
)
:
Sequence
<
Int
>
fun
Random
.
ints
(
range
:
IntRange
)
:
Sequence
<
Int
>
fun
Random
.
ints
(
from
:
Int
,
until
:
Int
)
:
Sequence
<
Int
>
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
open
fun
nextBytes
(
array
:
ByteArray
)
:
ByteArray
open
fun
nextBytes
(
size
:
Int
)
:
ByteArray
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
Double
Inclusive
Link copied to clipboard
fun
Random
.
nextDoubleInclusive
(
)
:
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
next
Ratio
Link copied to clipboard
fun
Random
.
nextRatio
(
)
:
Ratio
next
Ratio
Inclusive
Link copied to clipboard
fun
Random
.
nextRatioInclusive
(
)
:
Ratio
shuffled
Weighted
Link copied to clipboard
fun
<
T
>
Random
.
shuffledWeighted
(
weights
:
RandomWeights
<
T
>
)
:
List
<
T
>
fun
<
T
>
Random
.
shuffledWeighted
(
weights
:
Map
<
T
,
Double
>
)
:
List
<
T
>
fun
<
T
>
Random
.
shuffledWeighted
(
values
:
List
<
T
>
,
weights
:
List
<
Double
>
)
:
List
<
T
>
weighted
Link copied to clipboard
fun
<
T
>
Random
.
weighted
(
weights
:
RandomWeights
<
T
>
)
:
T
fun
<
T
>
Random
.
weighted
(
weights
:
Map
<
T
,
Double
>
)
:
T