Skip to content

Implementation of Xoshiro pseudorandom number generators on D Programming Language.

License

Notifications You must be signed in to change notification settings

lempiji/xoshiro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xoshiro

Implementation of Xoshiro pseudorandom number generators on D Programming Language.

Usage

Add dependency

dub add xoshiro

import

import xoshiro.xoshiro;

Xoshiro128Plus rndGen1;
Xoshiro128PlusPlus rndGen2;
Xoshiro128StarStar rndGen3;
Xoshiro256Plus rndGen4;
Xoshiro256PlusPlus rndGen5;
Xoshiro256StarStar rndGen6;

import std.random : uniform01, unpredictableSeed;

rndGen1.seed = unpredictableSeed;
auto x = uniform01(rndGen1);

rndGen4.seed = unpredictableSeed!ulong;
auto y = uniform01(rndGen4);

Benchmark

benchmark_basic

cd examples/basic
dub run --build=release-nobounds --compiler=ldc2

License

This library is under the MIT License.

See Also

https://prng.di.unimi.it

About

Implementation of Xoshiro pseudorandom number generators on D Programming Language.

Topics

Resources

License

Stars

Watchers

Forks

Languages