Skip to content

A simple PRNG algorithm implemented in various languages! Same seed same sequences, ints only.

License

Notifications You must be signed in to change notification settings

CiaccoDavide/CiaccoPRNG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CiaccoPRNG

A simple PRNG algorithm implemented in various languages! Same seed same sequences, ints only.

--

Usage

PHP:

require_once "CiaccoPRNG.php";
use ciacco_PRNG\CiaccoPRNG;
$seed = 123;
$min = 0;
$max = 255;
CiaccoPRNG::seed($seed);
CiaccoPRNG::getRand($min,$max); // returns a pseudo-random int

C#:

int seed = 123;
int min = 0;
int max = 255;
CiaccoRandom randomer = new CiaccoRandom();
randomer.plantSeed(seed);
randomer.getRand(min, max); // returns a pseudo-random int

About

A simple PRNG algorithm implemented in various languages! Same seed same sequences, ints only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published