π² Secure Random Number Generator
Generate unpredictable random values.
About Secure Random Number Generator
What is SRNG?
We have developed an innovative algorithm called SRNG (Secure Random Number Generator), which combines various current technologies to generate randomness securely.
This algorithm not only ensures the absence of patterns but is also highly resistant to replication and reliable for critical applications.
Furthermore, it is designed to withstand various types of attacks, making it a robust solution for generating random numbers in sensitive environments.
Usage
Once we have created and configured our API object, it is quite simple, we just need to execute the following code.
import DymoAPI from "dymo-api";
const dymo = new DymoAPI({
apiKey: "PRIVATE_TOKEN_HERE"
});
console.log(await dymo.getRandom({
min: 1,
max: 100,
quantity: 5
}).values[0].integer);
Response
The more generations you add, the longer the response time.
{
"values": [
{
"integer": 4,
"float": 4.48115
},
{
"integer": 6,
"float": 6.22347
},
{
"integer": 6,
"float": 6.20478
},
{
"integer": 4,
"float": 4.62339
},
{
"integer": 8,
"float": 8.12733
}
],
"executionTime": 0.30289999999513384
}
Parameters
Authorization
String
required
| Parameter | Type | Required | Description |
|---|---|---|---|
min | String | Integer | β | Minimum range |
max | String | Integer | β | Maximum range |
quantity | String | Integer (1-10) | β | Amount of numbers generated (1 default) |