EditSafely

Generate a Random Fraction

Quickly generate random fractions. Runs entirely in your browser, so your data never leaves your device.

Output

The result appears here as you type.

Options

How to use Generate a Random Fraction

  1. 1. Set how many fractions. Enter How many fractions to decide how many numerator-over-denominator pairs the generator returns in one run.
  2. 2. Bound the numerator and denominator. Set Maximum numerator and Maximum denominator to cap the range each part is drawn from, keeping fractions small and readable or letting them run larger.
  3. 3. Choose a separator. Set Separator to control how consecutive fractions are joined, such as a newline for a column or a comma for an inline list.
  4. 4. Copy the fractions. Copy the generated fractions into a worksheet, script, or test case. Generate again any time you need a different batch.

When to use Generate a Random Fraction

Generate a Random Fraction produces a batch of numerator-over-denominator pairs within ranges you set, saving the work of inventing plausible fractions by hand. It suits teaching, testing, and anywhere else fraction examples are needed.

  • Building a fraction reduction worksheet. A math teacher wants a fresh set of fractions each week for students to practice simplifying to lowest terms, without repeating the same textbook numbers.
  • Testing a fraction-simplifying function. A developer writing code that reduces fractions to lowest terms needs varied numerator and denominator pairs, including some that share common factors, to confirm the logic works.
  • Demonstrating fraction comparison. An instructor showing how to compare two fractions by cross-multiplying wants several random pairs generated live to work through with the class.
  • Generating example data for a recipe scaler. Someone building a recipe app that displays quantities as fractions wants sample values to check that the display formats numerators and denominators correctly.

Examples

Five random fractions

Output

3/20
7/12
0/5
11/18
4/9

Fractions with small parts

Output

1/3, 2/5, 0/2

About the Generate a Random Fraction tool

Generate a Random Fraction runs as plain JavaScript in your browser tab, with no server behind it. Quickly generate random fractions. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's Random Tools section, 120 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 4 settings, including How many fractions, Maximum numerator, Maximum denominator and Separator, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is Generate a Random Fraction free to use?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Does the generator send anything to a server?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How do I get a different result?

Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.