使用crypto.getRandomValues生成密码学安全随机数
Generate random numbers, coin flips, dice rolls, and random choices. Set custom ranges and options. This free random generator is perfect for games, giveaways, statistical sampling, and decision making.
Enter the minimum and maximum values for your random numbers. The generator will produce numbers within this inclusive range.
Set how many numbers to generate (1-100). Choose whether numbers must be unique or can repeat, and select ascending sort or no sort.
Click Generate to get your random numbers. Use the Copy button to copy all results to your clipboard at once.
Q: Are these truly random numbers?
A: Yes. This generator uses crypto.getRandomValues(), which provides cryptographically secure random numbers suitable for security-sensitive applications.
Q: Can I generate negative numbers?
A: Yes, you can set any integer range including negative values. For example, min=-10 and max=10 will give results from -10 to 10.
Q: What is the maximum range?
A: You can set any range up to the maximum safe integer in JavaScript (9,007,199,254,740,991). For unique mode, the count must not exceed the range size.