1 个不稳定版本
0.1.0 | 2022年10月6日 |
---|
714 在 #numbers
5KB
91 行
randomf
命令行工具,可轻松生成随机数并调整至您满意。
Usage:
random <...function>
functions get applied one after another.
functions are:
floor
round
ceil
between float float
log
pow float
sqrt
add float
mul float
sub float
div float
示例
# generate random integers between 1 and 10
randomf between 1 11 floor
# generate some random number between 0 and 1
randomf
# generate some random number between 0 and 99, making higher numbers much less likely
randomf pow 2 between 0 100
依赖项
~305KB