使用范围:WX
Contents
class RandomUtilFn ($UI/wxsys/lib/fn/randomUtilFn)
随机数工具类
Constructor Top
RandomUtilFn () |
Static Methods Top
Double | random () | |
String | randomAlphabetic (Integer count) | |
Integer | randomInt (Integer count) | |
String | randomNumber (Integer count) | |
String | randomString (Integer count) |
Constructor details
Top
public
RandomUtilFn
()
随机数工具类
public
RandomUtilFn
()
随机数工具类
Static Methods Detail Top
static
public
Double
random
()
创建一个double类型的随机数,在0(包括0)和1(不包含1)之间
static
public
String
randomAlphabetic
(Integer count)
创建一个指定长度的字母随机字符串
static
public
Integer
randomInt
(Integer count)
创建一个int类型的随机数
static
public
String
randomNumber
(Integer count)
创建一个随机数字字符串
static
public
String
randomString
(Integer count)
创建一个指定长度的字母和数字的随机组合字符串