A WordPress plugin that displays a random number on each page load via shortcode. It truly is magic.
As of April 2026, A Random Number is a WordPress rng plugin with 800 active installations and a 3.7/5 rating from 6 reviews. It has been downloaded 14K+ times in total. Requires WordPress 3.0.1+ and PHP false+. Available on WordPress.org since 2016. Last updated 1 year ago — may have compatibility concerns. Top alternative: rng-shrotlink.
The shortcode [arandomnumber] can be added to any post, page, or widget as many times as needed to display a random number. The number has a default range of 1 – 100, but can be changed using the min and max attributes, like so:
[arandomnumber min=1 max=10000]: This will output a random number between 1 and 10,000. (Like this: 8,014)
[arandomnumber min=-500 max=-1]: This will output a random number between -500 and -1. (Like this: -232)
[arandomnumber min=50000000 max=60000000]: This will output a random number between 50,000,000 and 60,000,000. (Like this: 56,449,060)
etc.
If you wish to disable commas, use the comma=no attribute, like so: [arandomnumber min=100000 max=999999 comma=no]. This will output a random number within the range without the commas, like this: 456245.
| WordPress | 3.0.1+ requiredTested up to 6.5.8 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.