這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Random Numbers Generator

描述

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.

安裝

Install and activate the plugin from your WordPress dashboard.

General information about installing WordPress plugins can be found here

常見問題

What is the default value?

The default value is 0 — meaning that the shortcode will echo “0” if no range is specified.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Random Numbers Generator” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Random Numbers Generator 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.0

  • Initial release.