JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

math/rng-int

core-api


    cfunction
    src/core/math.c on line 151, column 1

    (math/rng-int rng &opt lim)

    Get a random integer in the range [0, `lim`) for a positive integer 
    `lim` using the RNG `rng`. If `lim` not given, the default is 2^31 
    - 1.


0 examplesSign in to add an example
Loading...