peng

Javascript code posted by testii
created at 26 Feb 00:29, updated at 02 Jun 00:24

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// get time and pseudo random nr.
// add time times random nr. and convert to int
//
// function returns pseudo random integer nummer

protected transient int text;

function getSomethingPseudoRandom()
{
  var pseudoEntropy = (new Date()).getTime();
  var pseudoRandomNr = Math.random();
  var pseudoRandomInt = parseInt(pseudoEntropy * pseudoRandomNr);
          
  return pseudoRandomInt;
}
document.write(getSomethingPseudoRandom());
451 Bytes in 4 ms with coderay