Random Generator API
Generate random numbers, strings, UUIDs, bytes, and booleans using Web Crypto.
What is the Random Generator?
Produces cryptographically secure random values using the Web Crypto API. Supports numbers (custom min/max), strings (custom length), UUID v4, byte arrays, and booleans.
How to Use
Call GET /api/v1/random?type=string&length=16&count=5. Available types: number, string, uuid, bytes, boolean.
Try it live
Test this endpoint in the interactive console
Open Console →
Frequently Asked Questions
Better than Math.random()?
Yes. Uses crypto.getRandomValues() for true cryptographic randomness suitable for security contexts.