2015-06-11 12:02:27 +10:00
{
2015-09-20 17:12:43 +02:00
"name": "rand",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["Math"],
2019-12-03 13:31:19 +01:00
"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.",
2015-06-11 12:02:27 +10:00
"arguments": [ {"arg":"min","description":"an integer representing the smallest possible random number desired"},
2019-12-03 13:31:19 +01:00
{"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"}],
2015-06-11 12:02:27 +10:00
"examples": [ { "expression":"rand(1, 10)", "returns":"8"}]
}