Mojo function
random_float64
random_float64(min: Float64 = 0, max: Float64 = 1) -> Float64
Returns a random Float64 number from the given range.
Args:
- min (
Float64): The minimum number in the range (default is 0.0). - max (
Float64): The maximum number in the range (default is 1.0).
Returns:
Float64: A random number from the specified range.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!