The numpy.random module defines the following 4 functions that all seem to return a float betweeb [0, 1.0) from the continuous uniform distribution. What (if any) is the difference between these functions?
random_sample([size]) Return random floats in the half-open interval [0.0, 1.0).
random([size]) Return random floats in the half-open interval [0.0, 1.0).
ranf([size]) Return random floats in the half-open interval [0.0, 1.0).
sample([size]) Return random floats in the half-open interval [0.0, 1.0).
--------------------------- Edit Follows ---------------------------------------
I found the following in numpy.random
source code that supports @askewchan's answer:
# Some aliases:
ranf = random = sample = random_sample
__all__.extend(['ranf','random','sample'])