demo/js/npgmain.js
function randi(s, e) {
  return Math.floor(Math.random()*(e-s) + s);
}
function randi(s, e) {
  return Math.floor(Math.random()*(e-s) + s);
}
function randi ( s , e ) { return Math . floor ( Math . random ( ) * ( e - s ) + s ) ; }
uniform distribution integer
uniform distribution integer