We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The reference for ZZ.random_element gives this description:
ZZ.random_element
If the distribution 'mpz_rrandomb' is specified, the output is in the range from 0 to 2x-1.
This does not match the GMP description:
The random number will be in the range 2n-1 to 2n-1, inclusive.
And can be observed with
sage: histogram([ZZ.random_element(1, distribution='mpz_rrandomb') for _ in range(100)])
The reference manual should be updated to reflect actual behavior of mpz_rrandomb.
mpz_rrandomb
If we want the originally described range 0 to 2x-1, mpz_urandomb should be added as a supported distribution.
mpz_urandomb
Depends on #12496
Component: documentation
Issue created by migration from https://trac.sagemath.org/ticket/32319
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The reference for
ZZ.random_element
gives this description:This does not match the GMP description:
And can be observed with
The reference manual should be updated to reflect actual behavior of
mpz_rrandomb
.If we want the originally described range 0 to 2x-1,
mpz_urandomb
should be added as a supported distribution.Depends on #12496
Component: documentation
Issue created by migration from https://trac.sagemath.org/ticket/32319
The text was updated successfully, but these errors were encountered: