Lodol Docs

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

ParameterTypeRequiredDescription
minimumnumberYesThe lowest integer that can be returned (inclusive).
maximumnumberYesThe highest integer that can be returned (inclusive).

Response

{
  "status": "success"
}

Random decimal

Generate a random decimal number within a range.

Parameters

ParameterTypeRequiredDescription
minimumnumberYesThe lowest number that can be returned (inclusive).
maximumnumberYesThe 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

ParameterTypeRequiredDescription
valuesarrayYesThe list to pick from.
nnumberYesHow many items to pick at random (without replacement). Must be ≤ list length.

Response

{
  "status": "success"
}

On this page