CURL examples
Get 42 random integers between 0 and 1000
curl http://random.openqu.org/api/randint?size=42&min=0&max=1000
Example response:
{
"result":
[ 87, 823, 326, 929, 999, 9, 827, 307, 487, 462, 759, 916, 674,
864, 375, 950, 518, 405, 546, 781, 763, 161, 563, 502, 639, 171,
448, 106, 442, 164, 184, 939, 584, 726, 938, 314, 14, 852, 523,
822, 112, 578]
}
Get 10 random numbers
curl http://random.openqu.org/api/rand?size=10
Example response:
{
"result":
[ 0.36132467, 0.4809688 , 0.29784684, 0.28518732, 0.92419363,
0.62890249, 0.75503142, 0.71389237, 0.72275777, 0.06983703]
}