Back to Numerical Arrays (NumPy)
np.sample
Return random floats in the half-open interval [0.0, 1.0).
Syntax
np.sample(size?)
Description
Return random floats in the half-open interval [0.0, 1.0).
Parameters
| Name | Description |
|---|---|
| size(optional) | - Output shape |
Returns
NDArray | number