Title: Random Number Generator
Author: Whiler
Published: <strong>2009 年 11 月 24 日</strong>
Last modified: 2009 年 11 月 27 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/random-number-generator.svg)

# Random Number Generator

 作者：[Whiler](https://profiles.wordpress.org/whiler/)

[下载](https://downloads.wordpress.org/plugin/random-number-generator.1.3.2.zip)

 * [详情](https://cn.wordpress.org/plugins/random-number-generator/#description)
 * [评价](https://cn.wordpress.org/plugins/random-number-generator/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/random-number-generator/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/random-number-generator/#developers)

 [支持](https://wordpress.org/support/plugin/random-number-generator/)

## 描述

It can be used to avoid browsers cache by inserting a random number.
 For instance,
http://my_url?[random-number]” could generate http://my_url?134548.

[random-number from=”2″ to=”72″ format=”%b”]%d minutes[/random-number]

output: an integer value between 2 & 72 followed by the word ‘minutes’

**This plugin is a sample on how to create a plugin which:**
 * supports internationalization,*
provides an option screen, * saves some options, * use images, * replaces a tag.

By the way, **it generates randomized numbers** ;o)

If you need more functionalities, feel free to ask (email/blog)…

A post with a French tutorial is available [here](http://blogs.wittwer.fr/whiler/2009/11/23/exemple-complet-extension-wordpress/).

### Supported languages

 * English
 * French
 * Russian (Thanks to [Vladimir / ShinePHP.com](http://www.shinephp.com/))

## 屏幕截图

 * [[
 * Options in English
 * [[
 * Options in French
 * [[
 * Options in Russian
 * [[
 * Sample

## 安装

This section describes how to install the plugin and get it working.

 1. Upload folders and files to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place `[random-number]` in a post (if you haven’t changed the tag caption in the
    options)

## 常见问题

Does it work with WordPress MU?

 * Yes

Which languages are included when I install the plugin?

 * English
 * French
 * Russian (Thanks to [Vladimir / ShinePHP.com](http://www.shinephp.com/))

## 评价

此插件暂无评价。

## 贡献者及开发者

「Random Number Generator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Whiler ](https://profiles.wordpress.org/whiler/)

[帮助将「Random Number Generator」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/random-number-generator)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/random-number-generator/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/random-number-generator/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/random-number-generator/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/random-number-generator/)。

## 更新日志

#### 1.3.2

 * Submenu was displayed in Dashboard menu when not on RNG options page: fixed

#### 1.3.1

 * The previous page isn’t anymore obsolete but it’s still recommended to navigate
   to the new one (from the new submenu).

#### 1.3.0

 * Parent menu can be changed in options page. Warning, after saving, the previous
   page will be obsolete and you will have to navigate to the new one (from the 
   new submenu).
 * JavaScript method renamed to avoid potential issue

#### 1.2.3

 * Links added under the plugin description in the plugins management page
 * Description translated

#### 1.2.2

 * More comments examples in the source code for translators / used with param –
   add-comments=Tr.:
 * Russian screenshot added

#### 1.2.1

 * Russian added in languages (Thanks to [Vladimir / ShinePHP.com](http://www.shinephp.com/))
 * Submenu capability updated to ‘manage_options’ ; script called even if not admin;
   visible in ‘WordPress Admin Bar’

#### 1.2.0

 * A direct link to the editor is available in the options plugin page
 * Images added in the options page (settings icon, a dice)
 * format used in content can include others shortcode tags
 * Shortcode tag can be customized

#### 1.1.0

 * Can generate till 5 numbers within the same format, ie: ‘%d-%d-%d%-d-%d’
 * Output an error if format is invalid
 * New screenshot available and [French sample](http://blogs.wittwer.fr/whiler/2009/11/24/exemple-random-number-generator/)

#### 1.0.1

 * Dynamic path extension really fixed

#### 1.0.0

 * Tag supports attributes ([from][to][format]) and a content for its format
 * Dynamic path extension fixed
 * UTF-8 Source files (instead of ISO)

#### 0.0.1

 * First release

## 额外信息

 *  版本 **1.3.2**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **2.8.6**
 *  语言
 * [English (US)](https://wordpress.org/plugins/random-number-generator/)
 * 标签
 * [generator](https://cn.wordpress.org/plugins/tags/generator/)[howto](https://cn.wordpress.org/plugins/tags/howto/)
   [numbers](https://cn.wordpress.org/plugins/tags/numbers/)[random](https://cn.wordpress.org/plugins/tags/random/)
   [sample](https://cn.wordpress.org/plugins/tags/sample/)
 *  [高级视图](https://cn.wordpress.org/plugins/random-number-generator/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/random-number-generator/reviews/)

## 贡献者

 *   [ Whiler ](https://profiles.wordpress.org/whiler/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/random-number-generator/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://blogs.wittwer.fr/whiler/)