MyCalCute
Install
Calculators / Math / Seeded random number

Seeded random number calculator

Generate a reproducible pseudo-random whole number from a numeric seed and range.

On this page

Your result

Generated whole number28
Seed used12,345

Calculator controls

How to calculate

Generate a reproducible pseudo-random whole number from a numeric seed and range.

Use a deterministic linear congruential step, then map it to the inclusive integer range.

Worked example

Numeric seed: 12345; Minimum whole number: 1; Maximum whole number: 100.

Generated whole number: 28 ; Seed used: 12,345 .

Assumptions and limits

This is reproducible and useful for examples, but it is not cryptographically secure and must not be used for passwords, gambling or security.

Results are rounded for display; calculations use unrounded values. Read our calculation methodology.

Understanding the result

Generate a reproducible pseudo-random whole number from a numeric seed and range. The displayed figures use the inputs and formula shown on this page.

When this tool is useful

Use the seeded random number to compare a scenario, check an estimate, or verify a manual calculation.

Understanding your inputs

InputWhat to enter
Numeric seedEnter a number of at least 0 and no more than 2147483646.
Minimum whole numberEnter a number of at least -1000000000 and no more than 1000000000.
Maximum whole numberEnter a number of at least -1000000000 and no more than 1000000000.

Frequently asked questions

What should I check before using the seeded random number result?

This is reproducible and useful for examples, but it is not cryptographically secure and must not be used for passwords, gambling or security.

Is this seeded random number result exact?

It is exact for the stated mathematical model and entered values. Real-world results can differ when rates, timing, fees, definitions or measurement conditions differ.