olivierdalang 65fed42213 [FEATURE][expressions] allow to seed random functions
useful to get deterministic random values
2019-12-03 13:35:27 +01:00

10 lines
650 B
Plaintext

{
"name": "rand",
"type": "function",
"description": "Returns a random integer within the range specified by the minimum and maximum argument (inclusive). If a seed is provided, the returned will always be the same, depending on the seed.",
"arguments": [ {"arg":"min","description":"an integer representing the smallest possible random number desired"},
{"arg":"max","description":"an integer representing the largest possible random number desired"},
{"arg":"seed","optional":true,"default":"null","description":"any value to use as seed"}],
"examples": [ { "expression":"rand(1, 10)", "returns":"8"}]
}