Here is some code:
import numpy print numpy.random.random(10)
[ 0.25463203 0.55637185 0.02743774 0.57380221 0.52378531 0.95099357 0.70975568 0.19575853 0.589227 0.06959599]
Here is some math: