The shortcode [arandomnumber] can be added to any post, page, or widget as many times as needed to display a random number.
可以将短代码[arandomnumber]添加到任何帖子,页面或窗口小部件中,次数可以显示一个随机数。
The number has a default range of 1 – 100, but can be changed using the min and max attributes, like so:
该数字的默认范围是1 – 100,但可以使用min和max属性进行更改,如下所示: p>
[arandomnumber min=1 max=10000]: This will output a random number between 1 and 10,000.
[arandomnumber min = 1 max = 10000]:这将输出1到10,000之间的随机数。
(Like this: 8,014)
(例如:8,014)
[arandomnumber min=-500 max=-1]: This will output a random number between -500 and -1.
[arandomnumber min = -500 max = -1]:这将输出-500到-1之间的随机数。
(Like this: -232)
(例如:-232)
[arandomnumber min=50000000 max=60000000]: This will output a random number between 50,000,000 and 60,000,000.
[arandomnumber min = 50000000 max = 60000000]:这将输出一个介于50,000,000和60,000,000之间的随机数。
(Like this: 56,449,060)
(例如:56,449,060) p>
etc.
等 p>
If you wish to disable commas, use the comma=no attribute, like so: [arandomnumber min=100000 max=999999 comma=no].
如果要禁用逗号,请使用comma = no属性,如下所示:[arandomnumber min = 100000 max = 999999 comma = no]。
This will output a random number within the range without the commas, like this: 456245.
这样会在不带逗号的范围内输出一个随机数,如下所示:456245。 p>
For full documentation, see the plugin's page: https://www.macardam.com/有关完整文档,请参见插件页面: https://www.macardam.com/ a-random-number/
a-random-number /
p>