Skip to content

Instantly share code, notes, and snippets.

View kaustav-das's full-sized avatar

Kaustav Das kaustav-das

  • IIT Ropar
  • Rupnagar, Punjab, India
View GitHub Profile
@kaustav-das
kaustav-das / XoRoRNG.cs
Last active December 6, 2020 09:13
xoroshiro128+ (named after its operations: XOR, rotate, shift, rotate) is a pseudorandom number generator intended as a successor to xorshift+. This is a direct C# port, mainly for Unity development, of the algorithm written by David Blackman and Sebastiano Vigna
/* Written in 2016 by David Blackman and Sebastiano Vigna ([email protected])
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>. */
/**
* A port of Blackman and Vigna's xoroshiro128+ generator to C# for Unity Development.
* This is a direct rewrite from the JAVA implementation by SquidPony.
* <br>