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