RandomAPI is a super simple express API generating random numbers
min
(required) - min random number (inclusive) [must be >= 0 & < max]max
(required) - max random number (exclusive) [must be > min]num
(optional) - amount of random number to generate (default: 1e5)
Feel free to editconfig/config.json
to change: server port, request path,num
limit
Request
GET /?
min=1&
max=10&
num=100 HTTP/1.1
Response
HTTP/1.1 200 OK
Randomly generated array of numbers:
[0,9,1,9,5,...0,9,4,4,6]
The amout of numbers is defined in the num
request header
02.02.2021. - Added logging & fixed readme typo 29.01.2021. - Initial release