Module number

Module number 

Source
Expand description

数字生成器模块

Functions§

adult_age
生成成人年龄(18-80)
age
生成年龄
bank_card_cn
生成银行卡号(中国)
bmi
生成BMI指数
child_age
生成儿童年龄(1-17)
credit_card
生成信用卡号(别名)
credit_card_number
生成银行卡号(16位)
currency
生成货币金额
failing_score
生成不及格分数(0-59)
float
生成指定范围的浮点数
float_with_precision
生成指定精度的浮点数
id_card_cn
生成身份证号码(中国,18位)
integer
生成指定范围的整数
negative_integer
生成负整数
passing_score
生成及格分数(60-100)
percentage
生成百分比(0-100)
phone_number
生成电话号码(通用)
phone_number_cn
生成手机号码(中国)
positive_integer
生成正整数
price
生成价格(0.01-9999.99)
probability
生成概率值(0.0-1.0)
random_float
生成指定范围内的随机浮点数
random_int
生成指定范围内的随机整数
salary
生成工资(20000-1000000)
score
生成分数(0-100)
senior_age
生成老年人年龄(60-100岁)
teenager_age
生成青少年年龄(13-19岁)
temperature_celsius
生成温度(摄氏度)
temperature_fahrenheit
生成温度(华氏度)
weight_kg
生成体重(公斤)