FloatProperty - xgouchet/Elmyr GitHub Wiki
class FloatProperty : ForgeryProperty<Float>
This class implements a ReadOnlyProperty, forging a random float within a given range.
Parameters
min - the minimum value (inclusive), default = -Float#MAX_VALUE
max - the maximum value (exclusive), default = Float#MAX_VALUE
Constructors
<init>
FloatProperty(min: Float= -Float.MAX_VALUE, max:Float = Float.MAX_VALUE)
This class implements a ReadOnlyProperty, forging a random float within a given range.
Parameters
min - the minimum value (inclusive), default = -Float#MAX_VALUE
max - the maximum value (exclusive), default = Float#MAX_VALUE
Functions
getForgery
fun getForgery(forge: Forge): Float
Inheritdoc
Companion Object Functions
floatForgery
fun floatForgery(min: Float= -Float.MAX_VALUE, max:Float= Float.MAX_VALUE):ForgeryProperty<Float>
Creates a ReadOnlyProperty that will forge a random float within the given range.
Parameters
min - the minimum value (inclusive), default = -Float#MAX_VALUE
max - the maximum value (exclusive), default = Float#MAX_VALUE