Opera Dragonflyで開発中。
以下便利な関数。一行で作れる。
<html><head><script> lcg = function(r,m){var a=[];var s=(new Date()).getTime();for(var i=0; i<r; i++){s=(s*m[0]+m[1])%m[2];a.push(s);}return a;}; bit = function(s){var b=0;s.split("").reverse().forEach(function(e,i){b+=(e!="0"?1:0)*Math.pow(2,i)});return b;}; down = function(n){return parseFloat("0."+n.toString(10))}; test = function(m){var a=lcg(m[2],m);for(var i=1,l=a.length;i<l;i++)if(a[i]==a[0])return "false :"+a.join(",");return "true :"+a.join(",");}; </script><title>LCG</title></head></html>