Skip to content

Generate random numbers with confidence using the intrandom.com API. Customize your randomness by specifying a minimum, maximum, and seed for provably fair results. Perfect for games, simulations, and any application that demands reliable randomization.

License

Notifications You must be signed in to change notification settings

CA1R7/intrandom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Intrandom.com - Random Number Generator API

At intrandom.com, we prioritize fairness and transparency in generating random numbers. We employ a provably fair approach by utilizing a seed that allows users to verify the randomness and ensure impartiality of the generated numbers.

Usage

Generating a Random Number

To generate a random number, make a GET request to the API with the specified minimum, maximum, and seed if possible.

curl -X GET \
-H "Content-Type: application/json" \
-H "x-api-key: {YOUR_API_KEY}" \
https://api.intrandom.com/generate/{MY_SEED}

Link Queries:

Query Type Default Required
from Number 0 false
to Number 100 false

Validate a Random Number

To validate your random number, make a GET request to the API with the specified minimum, maximum, and Random Key.

curl -X GET \
-H "Content-Type: application/json" \
-H "x-api-key: {YOUR_API_KEY}" \
https://api.intrandom.com/generate/validate/{MY_SEED}

Link Queries:

Query Type Default Required
from Number 0 false
to Number 100 false
key String -- true

Generakeyng an API Key

To generate an API key, make a POST request to the API with the specified email and password.

curl -X POST \
-H "Content-Type: application/json" \
-d '{"username":"{YOUR_USERNAME}", "email": "{YOUR_EMAIL}", "password": "{YOUR_PASSWORD}"}' \
https://api.intrandom.com/auth/register

If you lost your API Key you can just make a POST request to the API with the specified email/username and password.

curl -X POST \
-H "Content-Type: application/json" \
-d '{"auther": "{YOUR_EMAIL/YOUR_USERNAME}", "password": "{YOUR_PASSWORD}"}' \
https://api.intrandom.com/auth/me

WebSocket Usage

Harness the power of WebSockets to dynamically interact with the intrandom.com API. WebSocket support allows real-time communication and seamless integration into applications requiring live updates or continuous random number generation. For usage examples and implementation guidance, explore the ./ws.test.ts file in this repository.

License

intrandom.com is licensed under the MIT License.

About

Generate random numbers with confidence using the intrandom.com API. Customize your randomness by specifying a minimum, maximum, and seed for provably fair results. Perfect for games, simulations, and any application that demands reliable randomization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors