http://api.randomish.io/number
{
"warnings":[],
"errors":[],
"values": [
841,
]
}
/value
valueOption
arguments.
Try it out
http://api.randomish.io/value?repeat=2&valueOption=1&valueOption=2&valueOption=3&valueOption=4&valueOption=5
{
"warnings":[],
"errors":[],
"values": [
1,
4
]
}
Name | Description | Default Value | Allowed Values |
---|---|---|---|
repeat | Integer value indicating how many values should be returned. | 1 | 1 - 50 |
unique | Boolean indicating whether the same value can appear multiple times in the results. | false | true or false |
valueOption | A single value that should be used in the pool of values to select from. | N/A |
Any string or number. Up to 20 values |
/number
http://api.randomish.io/number?repeat=5&min=1&max=1000&precision=2
{
"warnings":[],
"errors":[],
"values": [
121.66,
300.1,
132.8,
371.09,
121.56
]
}
Name | Description | Default Value | Allowed Values |
---|---|---|---|
repeat | Integer value indicating how many random values should be generated. | 1 | 1 - 50 |
unique | Boolean indicating whether the same value can appear multiple times in the results. | false | true or false |
min | The minimum value a number can be. | -2147483648 | -2147483648 - 2147483647 |
max | The maximum value a number can be. | 2147483647 | -2147483648 - 2147483647 |
precision | The number of decimal places to include. | 0 | 0 - 15 |
/letter
http://api.randomish.io/letter?repeat=5&length=4&case=lower
{
"warnings":[],
"errors":[],
"values": [
"zkav",
"imre",
"ysgg",
"bemg",
"ujnv"
]
}
Name | Description | Default Value | Allowed Values |
---|---|---|---|
repeat | Integer value indicating how many random values should be generated. | 1 | 1 - 50 |
unique | Boolean indicating whether the same value can appear multiple times in the results. | false | true or false |
length[max] | The maximum amount of characters that can be included in each value. | 1 | 1 - 20 |
length[min] | The minimum amount of characters that can be included in each value. | 1 | 1 - 20 |
case | The casing that should be applied to each set of values. | lower | lower or upper |
/guid
http://api.randomish.io/guid?repeat=5
{
"warnings":[],
"errors":[],
"values": [
"ee1a8754-f0da-4cc7-b09c-a8b26dadb06b",
"313a94ff-39b3-4208-8eb8-174661fcce12",
"5400010d-416e-441c-8e0e-cd583a82141c",
"cb5fb885-0356-4254-a2c3-f6a0902f3700",
"859e0f30-b280-4a21-a584-be16b489cb62"
]
}
Name | Description | Default Value | Allowed Values |
---|---|---|---|
repeat | Integer value indicating how many random values should be generated. | 1 | 1 - 50 |
unique | Boolean indicating whether the same value can appear multiple times in the results. | false | true or false |
/timestamp
http://api.randomish.io/timestamp?repeat=5&date[min]=2/24/2018&date[max]=2/24/2019
{
"warnings":[],
"errors":[],
"values": [
"2018-03-25T14:42:00",
"2018-12-25T08:34:00",
"2018-09-16T13:59:00",
"2019-01-06T06:03:00",
"2018-11-18T08:12:00"
]
}
Name | Description | Default Value | Allowed Values |
---|---|---|---|
repeat | Integer value indicating how many random values should be generated. | 1 | 1 - 50 |
unique | Boolean indicating whether the same value can appear multiple times in the results. | false | true or false |
date[min] | Minimum date generated values must be above. | 1995-01-01 | Any date in YYYY-MM-dd format |
date[max] | Date in which generated values cannot exceed. | The date of the request + 5 years | Any date in YYYY-MM-dd format |