randarium
Numbers

Random Direction Generator

Create reproducible random directions as compass points (8 or 16 directions), degrees (0–360), radians (0–2π), or clock positions. Useful for navigation, game development, and directional testing.

Also known as: heading · bearing · orientation

seeded

Output

No output yet — set your options and hit .
About this tool, tips & examples

What it does

The Random Direction Generator produces random headings in five formats: 8-point compass (N, NE, E…), 16-point compass (adding NNE, ENE…), degrees (0–360), radians (0–2π), or clock positions (“3 o’clock”). Configure decimal precision for the numeric modes and generate up to 1,000 directions per run, seeded for reproducibility.

Common use cases

  • Game development — spawn headings, wander directions, and wind/current vectors for entities.
  • Navigation app testing — bearing values in the formats your code parses and displays.
  • Simulations — random initial orientations for particles, agents, and boids.
  • Teaching — degrees ↔ radians ↔ compass conversions with instant examples.

Settings

  • Mode — 8-point compass, 16-point compass, degrees, radians, or clock positions.
  • Decimals — 0 to 6 places for the numeric modes.
  • How many — 1 to 1,000 directions, exportable as text, CSV, or JSON.
  • Seed — identical seed + settings = identical headings.

Privacy note

Directions are generated locally in your browser and never uploaded — random angles with no connection to any real position or device.

FAQ

Are all directions equally likely? Yes — uniform across the circle in every mode, so large samples show no directional bias (a property worth asserting in simulation tests).

Degrees or radians? Degrees for humans and most APIs; radians for math (sin/cos take radians). Generating matched sets of both from one seed makes conversion tests trivial.

How do clock positions map to degrees? 12 o’clock is 0°/360° (straight ahead), 3 o’clock is 90°, 6 is 180°, 9 is 270° — the aviation “bandits at 6 o’clock” convention.