extension-randomize

Haxe's extension for randomized.
https://github.com/agvadillo/extension-randomize

To install, run:

haxelib install extension-randomize 1.0.1 

See using Haxelib in Haxelib documentation for more information.

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

Contributors
agvadillo
Version
1.0.1
Published
2 years ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github