Skip to content

RandNormal

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

Parameters

Name Type Description
length integer The number of random numbers to generate. Default: 1
mu number The mean. Default: 0.0
sigma number The standard deviation. Default: 1.0

Example

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

Response

Status: 200 OK
{
  "action": "randnormal",
  "mu": 0.0,
  "sigma": 1.0,
  "length": 10,
  "data": [
    0.5701110885581638,
    0.1996882510375306,
    -0.7010500648665656,
    1.587191900038012,
    -0.15222487774753307,
    0.09697828570517471,
    -1.7998530109174575,
    0.7926064808735915,
    0.08671374150922546,
    -0.3844227185173853
  ]
}
Clone this wiki locally