Number picker

Choose how many numbers to draw and the range of the draw.

How it works

  • The numbers are drawn on the server and are not stored.
  • The minimum and the maximum are part of the range, and negative numbers are accepted.
  • You can draw up to 1000 numbers at once.
  • Each number is drawn independently, so numbers can repeat.
  • The draw is not cryptographically secure: do not use it for passwords, security tokens or draws with real prizes.

How to use the API

You can integrate the number picker into your app through our REST API.

Endpoint

POST /api/random-picker

Request body

random_count
Required. How many numbers to draw, from 1 to 1000.
random_min
Required. The lowest possible number (included).
random_max
Required. The highest possible number (included).

curl example

curl -X POST https://devtools.vmotta.dev/api/random-picker \
  -H "Content-Type: application/json" \
  -d '{"random_count":3,"random_min":1,"random_max":60}'

Example body

{
  "random_count": 3,
  "random_min": 1,
  "random_max": 60
}

Response

{
  "randomNumber": [
    7,
    42,
    18
  ]
}