Skip to content

Instantly share code, notes, and snippets.

View pkorac's full-sized avatar

Peter Koraca pkorac

View GitHub Profile
// Ported from Stefan Gustavson's java implementation
// Read Stefan's excellent paper for details on how this code works.
// Sean McCullough
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.