GGfor Tools

Random Number Generator

Generate integers or fixed-decimal values with Web Crypto, exact range handling and optional uniqueness within each group. Choose sorting or keep draw order.

Set the range, precision and groups

Use plain decimal bounds with up to 18 integer digits and 12 fractional digits. No scientific notation. Results use 0โ€“6 decimal places, within the original bounds.

Values are unique within each group only; different groups may repeat. Disable sorting to preserve draw order.

Count: 1โ€“1,000 per group. Groups: 1โ€“100. Decimal places: 0โ€“6. Invalid inputs are rejected, not rounded or silently changed.

Waiting for input...

Random number guide: ranges, decimal grids and sampling without replacement

Create numbers for practice exercises, test data and informal selections. The tool samples from a finite grid inside your chosen bounds, using the selected decimal precision. It is not a continuous real-number sampler or a certified drawing service.

How are random values selected?

Web Crypto supplies random bytes. Rejection sampling maps them to grid indexes without rounding or modulo bias. BigInt arithmetic keeps decimal bounds exact instead of converting them through binary floating-point numbers. If the required APIs or random source fail, the tool produces no result and does not switch to Math.random.

Inclusive bounds and decimal precision

Only representable grid points inside the original bounds can be selected. With 0 decimal places, bounds 1.2โ€“4.7 allow 2, 3 and 4. With 1 decimal place, 1.01โ€“1.29 allow 1.1 and 1.2. Bounds 0.14โ€“0.16 contain no one-decimal value, so that request is rejected. An endpoint is eligible only if it lies on the grid; bounds are never rounded outward.

What does uniqueness mean across groups?

Uniqueness applies separately to each group. A value may reappear in another group. Each group needs at least as many grid values as its requested count. Sampling without replacement avoids repeated duplicate retries, even when selecting the whole range. With uniqueness off, repeated values within a group are expected and valid.

Sorting changes presentation, not the selected values

Ascending sorting arranges each generated group numerically. It does not change the selected set, but it removes the original draw order. Turn sorting off when order matters. The first value of a sorted row is its smallest value, not necessarily the first value drawn.

How to generate, copy and clear results

Enter minimum and maximum bounds, count per group, number of groups and decimal places, then choose uniqueness and sorting. Click Generate. Each line is one group, with comma-separated values and fixed decimal places. Copy transfers the displayed text. Editing settings clears old results; Clear results preserves settings and does not clear your clipboard.

Input limits and impossible requests

Use ordinary decimal notation with a dot, at most 18 integer digits and 12 fractional digits. Exponents and thousands separators are not accepted. Count is 1โ€“1,000 per group, groups 1โ€“100 and precision 0โ€“6. If the interval has no grid point, or too few values for uniqueness, change the range, precision or count. Values are formatted exactly without scientific notation.

Randomness, fairness and browser processing

A short sample need not look balanced, and sorting or excluding repeats changes what you see. A cryptographic source alone does not certify a contest or prove that its rules were fair. Use a dedicated password generator for passwords. This generation function does not submit numbers to a server or save them in browser storage, but shared website scripts still load; local computation is not an offline or isolated environment guarantee.