Skip to content

RandInt32

Andika Wasisto edited this page May 1, 2021 · 2 revisions
GET /api/randint32

Parameters

Name Type Description
length integer The number of random numbers to generate. Default: 1
min integer The minimum random number. Default: -2147483648
max integer The maximum random number. Default: 2147483647

Example

curl 'http://192.168.1.100:8080/api/randint32?length=10&min=-13&max=42'

Response

Status: 200 OK
{
  "action": "randint32",
  "min": -13,
  "max": 42,
  "length": 10,
  "data": [
    11,
    13,
    37,
    39,
    28,
    5,
    16,
    -4,
    -7,
    26
  ]
}
Clone this wiki locally