FastRandom

open class FastRandom : Random

Inheritors

Constructors

Link copied to clipboard
constructor(seed: Long)
constructor()

Types

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
fun Random.ints(from: Int, until: Int): Sequence<Int>
Link copied to clipboard
open override fun nextBits(bitCount: Int): Int
Link copied to clipboard
open fun nextBoolean(): Boolean
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
Link copied to clipboard
open fun nextDouble(): Double
open fun nextDouble(until: Double): Double
open fun nextDouble(from: Double, until: Double): Double
Link copied to clipboard
Link copied to clipboard
open fun nextFloat(): Float
Link copied to clipboard
open override fun nextInt(): Int
open override fun nextInt(from: Int, until: Int): Int
open fun nextInt(until: Int): Int
Link copied to clipboard
open override fun nextLong(from: Long, until: Long): Long
open fun nextLong(): Long
open fun nextLong(until: Long): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> Random.shuffledWeighted(weights: Map<T, Double>): List<T>
fun <T> Random.shuffledWeighted(values: List<T>, weights: List<Double>): List<T>
Link copied to clipboard
fun <T> Random.weighted(weights: RandomWeights<T>): T
fun <T> Random.weighted(weights: Map<T, Double>): T