API docs

Integer numbers

GET https://api.rand.by/v1/integer

Generating of positive and negative integer numbers

Parameters:

Name Description Default value
count Count of generated numbers
(Integer number from 1 to 10000)
100
min Left border of the range of generated numbers
(Integer number from -100000000 to 100000000)
-100
max Right border of the range of generated numbers
(Integer number from -100000000 to 100000000)
100
round Rounding the received numbers to the nearest multiples of the number specified in this field. For example, you need to get a set of numbers that are multiples of 50. So 2489 becomes 2500, 131 becomes 100, and 851 becomes 900 0

Float numbers

GET https://api.rand.by/v1/float

Generating of float numbers with a given precision

Parameters:

Name Description Default value
count Count of generated numbers
(Integer number from 1 to 10000)
100
min Left border of the range of generated numbers
(Integer number from -100000000 to 100000000)
-100
max Right border of the range of generated numbers
(Integer number from -100000000 to 100000000)
100
precision A number of symbols after comma
(from 1 to 8).
2

Bytes

GET https://api.rand.by/v1/byte

Generating of bytes in various notations. Binary, octal, decimal, hexadecimal

Parameters:

Name Description Default value
count Count of generated bytes
(Integer number from 1 to 10000)
100
min Left border of the range of generated bytes
(Integer number from 0 to 255)
0
max Right border of the range of generated bytes
(Integer number from 0 to 255)
255
radix Numeral system (radix) of generated bytes
(2, 8, 10 or 16).
10

Passwords

GET https://api.rand.by/v1/password

Generation of crack-resistant passwords

Parameters:

Name Description Default value
count Count of generated passwords
(Integer number from 1 to 10000)
1
min Minimum length of generated password
(Integer number from 1 to 64)
8
max Maximum length of generated password
(Integer number from 1 to 64)
12
digits Count of digits in the password
(Integer number from 0 to 64).
2
capitals Count of uppercase letters in the password
(Integer number from 0 to 64).
2
special Count of special characters in the password
(Integer number from 0 to 64).
2

Times

GET https://api.rand.by/v1/time

Generation of random time of day

Parameters:

Name Description Default value
count Count of generated times
(Integer number from 1 to 1440)
10
min Left border of the range of generated times
(from 00:00 to 23:59)
08:00
max Right border of the range of generated times
(from 00:00 to 23:59)
17:00
interval Interval of generated times
(Integer number from 1 to 60).
1
sort Result sorting
("asc" - ascending, "desc" - descending, or "none" - without sorting).
none

Dates

GET https://api.rand.by/v1/date

Generation of random dates in different formats

Parameters:

Name Description Default value
count Count of generated dates
(Integer number from 1 to 1440)
10
min Left border of the range of generated dates in format "YYYY-MM-DD"
The format may vary, but it is important that it is valid for the function Date.parse()
0000-01-01
max Right border of the range of generated dates in format "YYYY-MM-DD"
The format may vary, but it is important that it is valid for the function Date.parse()
2999-12-31
format The format in which the generated dates will be displayed
Details here.
DD.MM.YYYY
locale Language locale
Two-letter code from ISO 639-1 standard
en
days The days of the week to include in the set of generated dates (Integers from 1 to 7 separated by a comma. 1 - Monday, 7 - Sunday)
If parameter is not set, it is considered that any day of the week can be generated
1,2,3,4,5,6,7
sort Result sorting
("asc" - ascending, "desc" - descending, or "none" - without sorting).
none

WEB-colors

GET https://api.rand.by/v1/color

WEB-colors generation in different formats

Parameters:

Name Description Default value
count Count of generated elements
(Integer number from 1 to 1000)
1

Geographical coordinates

GET https://api.rand.by/v1/geo

Geographical coordinates generation

Parameters:

Name Description Default value
count Count of generated elements
(Integer number from 1 to 1000)
1
© 2016 - 2024
Made for people