Secure Random

Generate cryptographically secure random numbers, strings, and byte sequences based on Crypto.getRandomValues.

Generation Configuration

Character Set

Instructions

About Secure Random

This tool uses the browser's native Crypto.getRandomValues API to generate random numbers with cryptographic-level randomness, suitable for generating tokens, keys, verification codes and other security-sensitive scenarios.

Type Description

Random String: Custom charset and length, suitable for generating passwords, tokens; Random Integer: generates unbiased random integers within a specified range, uses rejection sampling to eliminate modulo bias; Random Bytes: generates raw byte sequences, supports Hex or Base64 output; UUID v4: generates random UUIDs conforming to RFC 4122.

Steps

1. Select generation mode (Random Integer / Random String / Random Bytes); 2. Set parameters (range, length, charset, etc.); 3. Click 'Generate' to get results.

Notes

Random integer mode requires minimum < maximum; cryptographically secure random numbers are more secure than Math.random() but slower; generated random data is only produced on the client side and never uploaded to a server.