## How do you measure the relative randomness of a function? [closed]

For example:

Out of

Math.rand()
Math.sqrt(Math.rand())
Math.pow(Math.rand(),2)


Which one is most random?

-
The phrase "most random" is nonsensical (cf. xkcd.com/221 ). You may have a mathematical question, but not as phrased. It looks like you're talking about a specific programming language here, which one? Measuring the quality of pseudorandom generators is a big topic in mathematics and theoretical computer science, but there is not enough information in this question to even begin addressing that. – François G. Dorais Apr 12 2010 at 4:21