Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: pseudo-random-generator-next! can't return 0.0 #803

Merged
merged 1 commit into from
Feb 5, 2024

Commits on Feb 5, 2024

  1. doc: pseudo-random-generator-next! can't return 0.0

    According to the code of `S_random_state_next_double` at
    https://github.com/cisco/ChezScheme/blob/1f5adec2c18712c89eb1692458fcf5d6514bff42/c/random.c#L108-L109
    (which is invoked by `pseudo-random-generator-next!`),
    the value is in the range (inclusively) 1 / (m1 + 1) to m1 / (m1 + 1).
    Therefore, 0.0 cannot be the result.
    sorawee committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    ca2e1e1 View commit details
    Browse the repository at this point in the history