xoshiro 1.0.0

Xoshiro pseudorandom number generators


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

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

Authors:
  • lempiji
Dependencies:
none
Versions:
1.0.0 2022-Apr-30
~main 2022-Apr-30
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 1 downloads total

Score:
0.3
Short URL:
xoshiro.dub.pm