Skip to content

About

Super high speed pseudo-random number generation in C

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lean - QuickRandom

This is a Lehmer PRNG in C which passes TestU01's BigCrunch. For more info see here.

This generator focuses on speed and thus has some operating constraints. See Main.c for usage examples.


This PRNG is zero-sensitive (though the chance of hitting a zero is about 1 in 340 undecillion). I have tested this PRNG using a seed of 1 up to 21,520,000,000,000 iterations (~156.6 TB) without encountering a zero, so just don't use a seed of zero and you will probably be fine.

There are no guarantees as to the PRNG period.

I've found speeds of ~5 GB/s can be achieved on modern hardware (5600X), though YMMV.

About

Super high speed pseudo-random number generation in C

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages