Private cryptographic randomness

Secure random number generator

Draw one or many integers from a custom inclusive range using the browser’s cryptographic random source.

Every endpoint is included

The minimum and maximum are inclusive integers, so a range from 1 through 10 contains ten possible values. Negative numbers and zero are supported. Up to 1,000 results can be generated at once, and the available interval is checked before a unique draw begins.

Cryptographic randomness replaces Math.random

The tool fills a local buffer with `crypto.getRandomValues`, the browser API intended for cryptographically strong random values. It does not use `Math.random()`. Generation happens in the current browser, and Gypes does not intentionally transmit or retain the resulting numbers.

Rejection sampling removes modulo bias

A 32-bit random value does not divide evenly into every requested range. Simply taking the remainder can make some results slightly more likely. This implementation discards values above the largest evenly divisible boundary before mapping the remainder into the requested interval.

Unique and sorted output changes presentation

Unique mode samples without repeated integer values. Sorting changes only the displayed order after generation; it does not redraw values. Keep draw order when sequence matters. Use the copy control for spreadsheets, classroom activities, test fixtures, randomized lists, or other local workflows.

Cryptographic randomness does not make an untrusted contest, lottery, game, clinical process, or security protocol fair or auditable. Use independently reviewed procedures and documented controls when outcomes carry money, rights, safety, or regulatory consequences.