Title: A Random Number
Author: James Harrison
Published: <strong>2016 年 1 月 12 日</strong>
Last modified: 2024 年 7 月 31 日

---

搜尋外掛

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

![](https://ps.w.org/a-random-number/assets/icon-256x256.png?rev=2093229)

# A Random Number

 由 [James Harrison](https://profiles.wordpress.org/randomnumberwp/) 開發

[下載](https://downloads.wordpress.org/plugin/a-random-number.1.2.zip)

[即時預覽](https://tw.wordpress.org/plugins/a-random-number/?preview=1)

 * [詳細資料](https://tw.wordpress.org/plugins/a-random-number/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/a-random-number/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/a-random-number/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/a-random-number/#developers)

 [技術支援](https://wordpress.org/support/plugin/a-random-number/)

## 外掛說明

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.

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/a-random-number` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the shortcode to display your magic number.

## 常見問題集

### Why does this plugin exist? It seems kind of pointless?

How dare you. It outputs a random number, so if you need a random number, there 
is nothing better. This is also useful to check if a page is being cached or if 
your server is properly loading since the number will change on every page load.
Use it to add random parameters to forms, urls, etc.

See? That’s practical.

## 使用者評論

![](https://secure.gravatar.com/avatar/d989645a057abedee791b91c8183b835f7e99637b2b6aac80dc2b6e8f01e49f3?
s=60&d=retro&r=g)

### 󠀁[too bad.. a no go!](https://wordpress.org/support/topic/too-bad-a-no-go/)󠁿

 [griezo](https://profiles.wordpress.org/griezo/) 2025 年 2 月 18 日

To bad… why there is suddenly a link? A no go.Found a better random numer generator(
B7) without all the nonsens.

![](https://secure.gravatar.com/avatar/ef648e46343bdb166cc99907f265fffcd2f1456bc4be87d4ce43c4c0761585c8?
s=60&d=retro&r=g)

### 󠀁[Started to add ad links](https://wordpress.org/support/topic/started-to-add-ad-links/)󠁿

 [weekender](https://profiles.wordpress.org/weekender/) 2025 年 1 月 23 日

Suddenly started to post ad links with the random numbers. No go.

![](https://secure.gravatar.com/avatar/b5489faeee2f236878bafdfd1fedd489eb3484bdfbcb59cd8c253136febed8e5?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-7411/)󠁿

 [dansayswithwords](https://profiles.wordpress.org/dansayswithwords/) 2021 年 1 
月 18 日

I use it to add a random number to a hidden form field in a form used to invite 
others to register That is then emailed as part of the invitation and entered by
the person when they register to verify them..

![](https://secure.gravatar.com/avatar/a593858f7ad3acae50953468b76e26f98bfd798fa033eb2c40f8fb7659918139?
s=60&d=retro&r=g)

### 󠀁[Useful And Easy To Use](https://wordpress.org/support/topic/useful-and-easy-to-use-21/)󠁿

 [mehdibmm](https://profiles.wordpress.org/mehdibmm/) 2018 年 5 月 21 日

This plugin is awesome, it’s useful and so easy to use (you just have to insert 
a shortcode anywhere you want and baaaaam).

![](https://secure.gravatar.com/avatar/97914d4a4b7d4b641e33f727d24ea15f5e0a0ecaaca09a5ad8b550b957ae2618?
s=60&d=retro&r=g)

### 󠀁[Works great.](https://wordpress.org/support/topic/works-great-4535/)󠁿

 [JimDixon](https://profiles.wordpress.org/jimdixon/) 2017 年 12 月 14 日

I needed a way to force a link to reload and not use the cached version. This tool
allowed me to insert a random number in the URL.

![](https://secure.gravatar.com/avatar/400c749a1f1d8a1417850f064920b221e67b4b17f7d6f416ba9f49b319ef5dcd?
s=60&d=retro&r=g)

### 󠀁[Works well](https://wordpress.org/support/topic/works-well-708/)󠁿

 [givememyleg](https://profiles.wordpress.org/givememyleg/) 2016 年 9 月 3 日

It does what it says it does. Simple yet works, used it to help me with testing 
page caching.

 [ 閱讀全部 6 則使用者評論 ](https://wordpress.org/support/plugin/a-random-number/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈A Random Number〉的開發相關工作。

參與者

 *   [ James Harrison ](https://profiles.wordpress.org/randomnumberwp/)

[將〈A Random Number〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/a-random-number)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/a-random-number/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/a-random-number/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/a-random-number/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/a-random-number/)。

## 變更記錄

#### 1.2

 * Updated to the latest WordPress version.

#### 1.1

 * Added comma attribute to remove commas if needed.
 * Released August 19, 2017

#### 1.0

 * Launched A Random Number into the Internets. It’s alive!
 * Released January 8, 2016

## 中繼資料

 *  版本 **1.2**
 *  最後更新 **2 年前**
 *  啟用安裝數 **800+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.5.8**
 *  語言
 * [English (US)](https://wordpress.org/plugins/a-random-number/)
 * 標籤:
 * [random](https://tw.wordpress.org/plugins/tags/random/)[random number](https://tw.wordpress.org/plugins/tags/random-number/)
   [random number generator](https://tw.wordpress.org/plugins/tags/random-number-generator/)
   [rng](https://tw.wordpress.org/plugins/tags/rng/)
 *  [進階檢視](https://tw.wordpress.org/plugins/a-random-number/advanced/)

## 評分

 3.7 星，滿分為 5 星

 *  [  4 個 5 星使用者評論     ](https://wordpress.org/support/plugin/a-random-number/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/a-random-number/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/a-random-number/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/a-random-number/reviews/?filter=2)
 *  [  2 個 1 星使用者評論     ](https://wordpress.org/support/plugin/a-random-number/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/a-random-number/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/a-random-number/reviews/)

## 參與者

 *   [ James Harrison ](https://profiles.wordpress.org/randomnumberwp/)

## 技術支援

最近 2 個月解決的問題:

     總計 1 個問題，已解決 0 個

 [檢視技術支援論壇](https://wordpress.org/support/plugin/a-random-number/)