Impact-Site-Verification: 1fce05f2-a6cf-4f31-8ca1-aaddc332516c

Random Draws That Teachers Can Replay

“Pick a random integer from 1 to 6” sounds trivial until someone asks whether 6 can appear, whether two students should see the same sample, or whether the generator is safe for passwords. This guide separates classroom randomness from cryptographic randomness.

Inclusive Means Both Ends Are Legal

An inclusive range [min, max] allows the minimum and the maximum. Dice, card indices, and many worksheet prompts expect that. Half-open intervals [min, max) are common in programming APIs—know which contract you are using.

Seeds Are for Reproducibility, Not Secrecy

A published seed lets every student regenerate the same list for grading or screenshots. That determinism is a feature for teaching and a defect for security. If an attacker knows or can guess the seed, the “random” sequence is public.

Educational PRNG ≠ CSPRNG
Math.random and small seeded generators are fine for demos and simulations with no adversary. Passwords, tokens, lottery draws, and session IDs need crypto.getRandomValues or another CSPRNG.

Generate an inclusive sample

Try integer or decimal mode, with or without a seed:

Open Random Number Generator