Skip to main content

RandomReal

RandomReal[] gives a pseudorandom real number in the range 0 to 1. 

RandomReal[{xmin,xmax}] gives a pseudorandom real number in the range xmin to xmax.

RandomReal[xmax] gives a pseudorandom real number in the range 0 to xmax.

RandomReal[range,n] gives a list of n pseudorandom reals.

RandomReal[range,{n1,n2,…}] gives an n1×n2×… array of pseudorandom reals.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.