Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

Random Number Generator

Also known as: RNG, random number generator

1 min read Updated November 10, 2026

Definition A program or device that produces numbers with no predictable pattern, used in games, draws and security.

What it is

Computers usually create pseudo-random numbers from a formula and a starting value, which look random but can be repeated. Security systems use better sources of randomness, such as hardware noise, to make codes hard to guess.

Why it matters for your business

Weak randomness makes passwords, codes and tokens easier for attackers to predict, and unfair draws damage trust.

Real-world example

A radio station in Kisumu picks a competition winner using a documented random number generator so listeners accept the result.

Design Corner tip

Use trusted security libraries for codes and tokens rather than home-made random functions.