Crates.io | randomf |
lib.rs | randomf |
version | 0.1.0 |
source | src |
created_at | 2022-10-06 15:01:31.557982 |
updated_at | 2022-10-06 15:01:31.557982 |
description | simple cli to generate random numbers |
homepage | |
repository | https://github.com/nilsmartel/randomf |
max_upload_size | |
id | 681401 |
size | 6,339 |
cli to easily generate random and adjust them to your liking.
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