Skip to content

RandBool

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

Parameters

Name Type Description
length integer The number of booleans to generate. Default: 1

Example

curl 'http://192.168.1.100:8080/api/randbool?length=10'

Response

Status: 200 OK
{
  "action": "randbool",
  "length": 10,
  "data": [
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
    true
  ]
}
Clone this wiki locally