A small random-number function library in JavaScript