Random Point Generator

Generates a list of random 2D (x, y) points, each drawn uniformly from a configurable bounding box (independent minimum/maximum for both x and y), formatted to a configurable number of decimal places. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool generates random 2D points inside a rectangle you define, useful whenever you need placeholder coordinates for a canvas, chart, or spatial data structure.

Set independent x and y ranges and a count, and it produces uniformly random points across that rectangular area.

What Is Random Point Generator?

A generator for random 2D (x, y) points, each drawn independently and uniformly within a configurable bounding box defined by separate minX/maxX and minY/maxY ranges.

Output is plain text, one comma-separated point per line.

How Random Point Generator Works

For each requested point, x is drawn uniformly from [minX, maxX] and y is drawn uniformly from [minY, maxY], independently of each other.

Both values are formatted to the requested decimal precision before being joined into a single line of output.

When To Use Random Point Generator

Use it to seed test data for a scatter plot, canvas drawing, spatial index, or collision-detection test.

It's also handy for quickly generating sample vertices to sanity-check a 2D geometry function.

Features

Advantages

  • Independent x and y ranges let you shape the bounding box as a square, wide rectangle, or tall rectangle.
  • Uniform distribution across the full rectangular area, unlike radius-based generators that can cluster near a center point.
  • Simple plain-text output that pastes cleanly into code or spreadsheets.

Limitations

  • Points are independent draws, so there's no guarantee of minimum spacing between them; two points can land very close together by chance.
  • Capped at 1,000 points per run to keep output manageable.
  • Produces a uniform random scatter, not a structured grid or pattern.

Examples

Generate 3 points in a 100x100 box

Input

(no input; generated from settings: count=3, minX=0, maxX=100, minY=0, maxY=100, decimals=1)

Output

34.2, 78.1
91.4, 6.3
52.9, 45.0

Generate 1 point centered near the origin

Input

(no input; generated from settings: count=1, minX=-10, maxX=10, minY=-10, maxY=10, decimals=2)

Output

-5.12, 2.84

Best Practices & Notes

Best Practices

  • Set the box dimensions to match the canvas or coordinate space you're actually testing against.
  • Use a modest count if you plan to render every point individually, to avoid an overly cluttered result.

Developer Notes

x and y are each computed independently as `min + rng() * (max - min)`, so this is a uniform scatter over the rectangle's area, not a Poisson-disk or grid-based distribution with guaranteed spacing.

Random Point Generator Use Cases

  • Seeding a scatter plot or canvas demo with placeholder points
  • Generating test input for a 2D spatial index or nearest-neighbor search
  • Producing sample vertices to sanity-check a geometry or collision function

Common Mistakes

  • Assuming generated points maintain a minimum distance from each other; they're independent draws and can cluster.
  • Setting minX/maxX or minY/maxY backwards (min greater than or equal to max), which the tool rejects.
  • Requesting far more points than you actually plan to visualize or process.

Tips

  • Use the Random Shape Generator if you want an actual rendered polygon instead of a plain list of coordinates.
  • Set minX/minY and maxX/maxY symmetric around 0 for points centered on an origin.

References

Frequently Asked Questions