Random Perfect Square Generator
Picks a random whole number from 1 to 30 and squares it, showing both the root and the resulting perfect square.
What this generator does
Picks a perfect square — a number that is some whole number multiplied by itself. Useful for square-root practice and for test data that needs a value with a known exact root.
How to use this tool
- Press generate for a random perfect square.
Worked examples
- Sequence
- 1, 4, 9, 16, 25, 36, 49, 64, 81, 100 …
Common use cases
- Square-number maths practice
- Quick reference for perfect squares
- Puzzle and pattern exploration
How this generator works
A root is drawn within the range you set and squared, so the result is a perfect square by construction rather than by testing candidates until one happens to be square. Both the root and the square are shown, because the useful fact about 289 is that it is 17 squared, and a number on its own does not say so.
Limitations and good to know
- Squares grow quadratically, so a root range of 1 to 100 produces values from 1 to 10,000 — the range you set is on the root, not the square.
- Every root in the range is equally likely, which means the squares are not uniformly spread: the gaps between them widen as they grow.
- Only positive roots are used. Negative roots square to the same values and would simply duplicate them.