
內容簡介
### 摘要:
B7 隨機數字外掛程式允許您在 WordPress 文章、頁面或小工具內輕鬆產生隨機數字。透過可自訂的參數,您可以指定範圍、格式,甚至要顯示的數字類型(奇數或偶數)。
### 問題與答案:
- 參數中預設最小值和最大值分別是多少?
- 預設最小值為 1,最大值為 100。
- 如何設定只生成奇數或偶數?
- 使用 type=odd 來生成奇數,使用 type=even 來生成偶數。
- 如果要在生成的數字中包含千位符號,應如何設定?
- 將 comma 設為 yes,即可在較大的數字中包含逗號。
外掛標籤
開發者團隊
原文外掛簡介
The B7 Random Number plugin allows you to easily generate random numbers directly within your WordPress posts, pages, or widgets. With customizable parameters, you can specify the range, format, and even the type of number (odd or even) you want to display.
Parameters
min: Specify the minimum value for the random number. Default is 1.
max: Specify the maximum value for the random number. Default is 100.
count: Define how many random numbers to generate. Default is 1.
type: Set the type of number to generate. Use even for even numbers and odd for odd numbers.
comma: Control the formatting of the output. Set to yes to include commas in large numbers, or no to remove them. Default is yes.
decimals: Specify the number of decimal places for the generated number. Default is 0.
prefix: Add a prefix to the generated number. For example: ID-.
suffix: Add a suffix to the generated number. For example: -XYZ.
Key Features
Versatile Number Generation: Generate random numbers between specified minimum and maximum values.
Multiple Configurations: Control the output with options for number formatting, decimal places, and inclusion of prefixes and suffixes.
Type Control: Choose to generate only odd or even numbers based on your requirements.
Shortcode Examples
Basic usage: [blogvii_rand_number]
Specific range: [blogvii_rand_number min=1 max=100]
Generate multiple numbers: [blogvii_rand_number count=5]
Odd number only: [blogvii_rand_number type=odd]
With prefix: [blogvii_rand_number prefix="ID-"]
