#generate #numbers #cli

app randomf

简单的命令行工具,用于生成随机数

1 个不稳定版本

0.1.0 2022年10月6日

714#numbers

MIT 许可证

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