WordPress plugin intelligence profile

A Random Number

Display a random number anywhere with a shortcode. Set a min/max range, choose number formatting and get a fresh value on every page load.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.3.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 5.8 · PHP 7.4
Directory statusactive
Last directory update27 Oct 20265d ago
Active installations700Adoption metric — not a quality score
WordPress.org rating3.7 / 5 from 6 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records A Random Number version 1.3.0 as active, updated 5d ago and tested up to WordPress 7.1.

Overview

About this plugin

A Random Number adds a simple random number generator to WordPress. Add the “A Random Number” block in the block editor, or put the [arandomnumber] shortcode in any post, page or widget, and it prints a new random number every time the page loads. Use it as many times as you like on the same page.

Features

  • Gutenberg block with minimum, maximum and thousands-separator settings and a live preview
  • Random number generator shortcode for posts, pages and text widgets
  • Custom range with the min and max attributes (default 1 to 100)
  • Negative numbers and large ranges are supported
  • Thousands separators on by default, switch them off with comma=no
  • Insert button in the classic editor (visual and text mode)
  • No settings page and no database tables to manage

How to use

In the block editor click the add-block button, search for “A Random Number” and set the range in the block sidebar.

Or add the shortcode wherever you want the number to appear. The default range is 1 to 100.

[arandomnumber]

Pick your own range with min and max:

[arandomnumber min=1 max=10000]

This prints a number between 1 and 10,000, for example 8,014.

[arandomnumber min=-500 max=-1]

This prints a number between -500 and -1, for example -232.

[arandomnumber min=50000000 max=60000000]

This prints a number between 50,000,000 and 60,000,000, for example 56,449,060.

To print the number without thousands separators use comma=no:

[arandomnumber min=100000 max=999999 comma=no]

This prints something like 456245.

Use cases

  • Giveaway or contest placeholder numbers
  • Lucky numbers, dice-style demos and games
  • Test data and sample figures while you build a page
  • Random values for form fields or URLs
  • Checking whether a page is cached: the number changes on every uncached page load
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • random number
  • random number generator
  • gutenberg
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 5.8 · PHP 7.4
Update activity27 Oct 20265d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.2.21.3.0
WordPress compatibility7.1.37.1.4
WordPress requirement4.65.8
PHP requirementNot listed7.4
Version1.2.11.2.2
WordPress requirement3.0.14.6
Version1.21.2.1
WordPress compatibility7.0.47.1.3
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.