Generator

open class Generator

Class to assist with generating unique player-specific preferences

Functions

Link copied to clipboard
open fun getRandom(): Random
Creates a new Random seeded with this seed
Link copied to clipboard
open fun normal(min: Double, max: Double, mean: Double, sd: Double): Double
open fun normal(min: Int, max: Int, mean: Int, sd: Int): Int
open fun normal(min: Long, max: Long, mean: Long, sd: Long): Long
Randomly generates a value normally distributed in the range of [min, max] with the specified mean and standard deviation
Link copied to clipboard
open fun uniform(min: Double, max: Double): Double
open fun uniform(min: Int, max: Int): Int
open fun uniform(min: Long, max: Long): Long
Randomly generates a value uniformly distributed in the range of [min, max]