RandomKt

public final class RandomKt

Functions

getY2
Link copied to clipboard
Float getY2()
k5Random
Link copied to clipboard
final static Float k5Random(Integer min, Integer max)

A simple random function to return float values between range of min and max

lcg
Link copied to clipboard
final static Long lcg(String state)
lcgSetSeed
Link copied to clipboard
final static Unit lcgSetSeed(String state, Integer value)
random
Link copied to clipboard
final static Double random(ClosedRange<Double> $self)

Generate random double number within this range

final static Float random(ClosedRange<Float> $self)

Generate random float number within this range

final static Integer random(ClosedRange<Integer> $self)

Generate random integer number within this range

final static Long random(ClosedRange<Long> $self)

Generate random long number within this range

randomGaussian
Link copied to clipboard
final static Float randomGaussian(Float mean, Float standardDeviation)

Generates a random gaussian with mean value and standardDeviation default value for standardDeviation is 1

randomSeed
Link copied to clipboard
final static Unit randomSeed(Integer seed)
setY2
Link copied to clipboard
void setY2(Float y2)

Properties

randomStateKey
Link copied to clipboard
public final static String randomStateKey
y2
Link copied to clipboard
private static Float y2