code: function Lcg(seed) {
    var a = 1103515245;
    var c = 12345;
    var m = Math.pow(2, 31);
    var state = Math.floor(seed || Math.random() * (m - 1));
  
    this._max = m;
    this._nextInt = function () { return state = (a * state + c) % m; };
  }
docs: Generator of random things.
  
  Inspired by: http://stackoverflow.com/a/424445/1062617