Float generators.
A set of functions to help with generating random types of float.
Generators can return a single value or grouped values using arrays and matrix.
_rndmFloat()
Generate a random float number.
- Name
min- Type
- float
- Description
Minimum value allowed. Optional. The default is 0.
- Name
max- Type
- float
- Description
Maximum value allowed. Optional. The default is 100.
- Name
precision- Type
- int
- Description
Decimal places to which the number will be rounded. Optional. The default is 2.
- Name
returns- Type
- float
- Description
A random float number.
_rndmFloatArray()
Generate a random float array.
- Name
size- Type
- int
- Description
The size of the array. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.
- Name
min- Type
- float
- Description
Minimum value allowed. Optional. The default is 0.
- Name
max- Type
- float
- Description
Maximum value allowed. Optional. The default is 100.
- Name
precision- Type
- int
- Description
Decimal places to which the number will be rounded. Optional. The default is 2.
- Name
returns- Type
- array<float>
- Description
A random float array.
_rndmFloatMatrix()
Generate a random float matrix.
- Name
rows- Type
- int
- Description
Total row size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.
- Name
columns- Type
- int
- Description
Total column size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.
- Name
min- Type
- float
- Description
Minimum value allowed. Optional. The default is 0.
- Name
max- Type
- float
- Description
Maximum value allowed. Optional. The default is 100.
- Name
precision- Type
- int
- Description
Decimal places to which the number will be rounded. Optional. The default is 2.
- Name
returns- Type
- matrix<float>
- Description
A random float matrix.