Yes I can remember Forbidden.
if you like GPW check out anything that's FIPS181 compliant:
http://www.itl.nist.gov/fipspubs/fip181.htm
APG is one of those: http://www.adel.nursat.kz/apg/
but it's old, around ten years since its last update.
Yeah, don't use it:
pik = Math.random(); // random number [0,1]What exactly is the problem there? (considering context)
Math.random is not CSPRNG http://en.wikipedia.org/wiki/Cryptographically_secure_pseudo...
http://www.multicians.org/thvv/gpw-js.html