You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using the range method to select integers within a specified range, and I see there is a float method that returns a random float, but I need a random float within a specified range. Something like:
range_float(23.4, 56.7)
# => 34.56
Is this something that exists in Rantly? And if not would a contribution to add this method be welcome? Or is there a better way of doing this outside of Rantly?
The text was updated successfully, but these errors were encountered:
It looks like I could update the existing range method to handle floats as well as strings, and implicitly generate the right type of range. Adding a new range_float method should also be easy too.
I've been using the
range
method to select integers within a specified range, and I see there is afloat
method that returns a random float, but I need a random float within a specified range. Something like:Is this something that exists in Rantly? And if not would a contribution to add this method be welcome? Or is there a better way of doing this outside of Rantly?
The text was updated successfully, but these errors were encountered: