extension-randomize 1.0.1

Haxe's extension for randomized.

Released 2016-04-12.

To install, run:

haxelib install extension-randomize 1.0.1

See using Haxelib in Haxelib documentation for more information.

Maintaineragvadillo
Websitehttps://github.com/agvadillo/extension-randomize
Current version1.0.1
StatisticsInstalled 20 times
LicenseMIT
Tags extension, haxe, numeric, random

README.md

extension-randomize

Haxe's extension for randomized

This implementation of random allows initializing a seed to generate random sequences repeatable.

Simple use Example

// This is a simple example of use.

import extension.randomize.Randomize;

class SimpleExample {
	function new(){
		// Initialize seed
		Randomize.setSeedRandom(10);
		
		// Get integer value between zero and twenty
		var valueInZeroToTwenty:Int=Randomize.getSeededRandomInt(20);

		// Get float value between zero and one
		var valueInZeroToOne:Float=Randomize.getSeededRandom();
	}
}

How to Install

haxelib install extension-randomize

License

GNU GENERAL PUBLIC LICENSE - LICENSE