Random Numbers Generator

plugin banner

This plugin allows you to display pre-formatted random numbers for testing or demonstration purposes.

Author:Codecide (profile at wordpress.org)
WordPress version required:5.0.0
WordPress version tested:5.3.8
Plugin version:1.0
Added to WordPress repository:08-01-2020
Last updated:08-01-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://plugins.codecide.net/product/ranb
Total downloads:3 092
Active installs:200+
plugin download
Click to start download

This plugin allows you to display pre-formatted random numbers for testing or demonstration purposes.

Attributes:
range: Two numbers separated by a comma. The output will contain a number between the mininum and maximum value, in that order.
format: Any string containing at least the # character. The # character is a placeholder for the generated number. If a single digit integer follows the #, the number will be formatted with the amount of decimals it specifies. By default, the output will be the nubmer by itself. Any other string specified in the format declaration will be echoed as is.
use: The name of a register. When “use” is specified, the first instance of the random number will be registered for reuse.

Examples:
[rann range=1,100]: Outputs a integer between 1 and 100.
[rann range=0.25,2.5 format=#2]: Outputs a float between 0.25 and 2.50
[rann range=-100,100 format=$#]: Outputs a signed integer between -100 and 100, preceded by the dollar sign.
[rann range=1,10 use=mytoken format=$#.95]: Outputs an integer between 1 and 10 preceded by a dollar sign and followed by “.95”; registers the result for later use.
[rann use=mytoken]: Outputs the raw integer registered in the previous example.

Donations

None needed.


FAQ
ChangeLog