NumPy · Function
np.random.rand
Creates an array of random values in a requested shape. Samples are uniform on [0, 1), including 0 but excluding 1.
Last updated
Syntax
numpy.random.rand(d0, d1, ..., dn)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
numpy.random.random_samplenumpy.zerosnumpy.ones