Pseudo-random versus true random
Browser randomness comes from a deterministic algorithm plus a seed: chaotic-looking but reproducible. Cryptographic sources resist prediction, while fast general algorithms do not. A fixed seed here reproduces an identical sequence from identical parameters, which is exactly what debugging wants — one seed replays the same data.
Steps
- Set minimum and maximum, endpoints included, plus a count.
- Set decimal places: zero for integers, two for cents, more for finer precision.
- Tick uniqueness within the batch and ascending sorting.
- Enter a seed such as forty-two for reproducibility.
- Generate, load a sample, copy, or download.
Uniqueness versus range size
Unique output cannot exceed the available values. An integer range from one to ten holds ten values, so twenty distinct integers are impossible and the tool reports or truncates. More decimals widen the space. Sampling should check feasibility first, and bulk unique values come better from a shuffle than from repeated draws with deduplication.
Why sorting random output
Sorting destroys the feel of randomness but eases inspection: ascending test data reveals out-of-range values and missing boundaries. Published sample lists often sort to look fair. Sorting is presentation only; when random order is wanted, generate then shuffle rather than sort.
Common problems
Using Math.random for tokens, codes or draws, which demands a cryptographic source. Misreading endpoints, where some libraries exclude the upper bound. Requesting more unique values than the range holds, which looks like a bug but is a contradiction. Rounding at zero decimals differing between truncation and rounding. Fixing only the seed while parameters drift. And treating pseudo-random output as unpredictable when a guessed seed reveals the whole sequence.
Practical boundaries:Test data, placeholder identifiers, demo samples and randomised load all tolerate pseudo-randomness. Money, eligibility and quota allocation need auditable randomness with recorded seed and algorithm. Security tokens need dedicated cryptographic functions of adequate length. Statistical uniformity must be verified in the algorithm, not trusted from a button, especially across custom ranges and decimals.