Skip to content

FloatProperty

Xavier Gouchet edited this page Feb 17, 2020 · 1 revision

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