1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 14:44:48 +00:00

Tweak math/rng-int docs

This commit is contained in:
sogaiu 2023-02-24 19:55:47 +09:00
parent f27b225b34
commit 9d5b1ba838

View File

@ -150,8 +150,8 @@ JANET_CORE_FN(cfun_rng_uniform,
JANET_CORE_FN(cfun_rng_int, JANET_CORE_FN(cfun_rng_int,
"(math/rng-int rng &opt max)", "(math/rng-int rng &opt max)",
"Extract a random random integer in the range [0, max] from the RNG. If " "Extract a random integer in the range [0, max) for max > 0 from the RNG. "
"no max is given, the default is 2^31 - 1." "If max is 0, return 0. If no max is given, the default is 2^31 - 1."
) { ) {
janet_arity(argc, 1, 2); janet_arity(argc, 1, 2);
JanetRNG *rng = janet_getabstract(argv, 0, &janet_rng_type); JanetRNG *rng = janet_getabstract(argv, 0, &janet_rng_type);