OjRandom class utilities

Simple implementation of xoshiro128++

Constructors

OjRandom()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

next32() int
Generate a random 32-bit integer. While Dart uses 64-bit integers, it can be compiled into JavaScript, which doesn't play nice with 64-bit ints, so we stick to 32 here.
rangeUniform(int limit) int
Return a random integer uniformly distributed in the range [0, limit) with no division, using rejection sampling. The mask m is used to minimize rejections, which will be at worst 50%.