8000 GitHub - foolnotion/jsf: Implementation of Bob Jenkins' small fast prng https://burtleburtle.net/bob/rand/smallprng.html
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

foolnotion/jsf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

jsf - Jenkins Small Fast Random Generator

Implementation of Bob Jenkins' small fast prng https://burtleburtle.net/bob/rand/smallprng.html

The name JSF (Jenkins Small Fast) was coined by Doty-Humphrey when he included it in PractRand.

A more detailed analysis at http://www.pcg-random.org/posts/bob-jenkins-small-prng-passes-practrand.html

example usage

#include <random>
#include <iostream>

#include "jsf.hpp"

Random::JsfRand<64> jsf;

std::uniform_real_distribution<double> dist(1.0, 10.0);

for (int i = 0; i < 10; ++i) 
{
    std::cout << dist(jsf) << "\n";
}

About

Implementation of Bob Jenkins' small fast prng https://burtleburtle.net/bob/rand/smallprng.html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0