Random by Lodol
API actions for the Random by Lodol integration.
Random by Lodol
Generate random numbers and data using Lodol's built-in Random provider.
Random integer
Generate a random whole number within a range.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
minimum | number | Yes | The lowest integer that can be returned (inclusive). |
maximum | number | Yes | The highest integer that can be returned (inclusive). |
Response
{
"status": "success"
}Random decimal
Generate a random decimal number within a range.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
minimum | number | Yes | The lowest number that can be returned (inclusive). |
maximum | number | Yes | The upper bound (exclusive — result is always less than this value). |
Response
{
"status": "success"
}Random sample
Pick a random selection of items from a list.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
values | array | Yes | The list to pick from. |
n | number | Yes | How many items to pick at random (without replacement). Must be ≤ list length. |
Response
{
"status": "success"
}