Credit to devdocs.io

haxe neko

haxe

Random

package neko

Available on macro, neko

A seeded pseudo-random generator.

Constructor

new ()

Create a new random with random seed.

Methods

float ():Float

Return a random float.

int (max:Int):Int

Return a random integer modulo max.

setSeed (s:Int):Void

Set the generator seed.

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/neko/Random.html