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
Module name: guppylang.std.random
guppylang.std.random
Functions: Note we should not use names from the python standard library random because they have different signatures and behaviours
@guppy.struct class RNGContext: # can only be initialised once per program. Second init fails at rutime. def __init__(seed: int) -> "RNGContext": ... # init safely, returning None if already acquired. def init_safe(seed: int) -> Option["RNGContext"]: ... def random_nat(self) -> nat: ... def random_int(self) -> int: ... def random_float(self) -> float: ... def random_int_bounded(self, bound: int) -> int: ...
The text was updated successfully, but these errors were encountered:
Should random be namespaced under qsystem module or std?
random
qsystem
std
Sorry, something went wrong.
probably safer to go with qystem for now
def random_nat(self) -> nat: ...
is this just an alias for random_int with some type conversions?
random_int
yup
qartik
No branches or pull requests
Module name:
guppylang.std.random
Functions:
Note we should not use names from the python standard library random because they have different signatures and behaviours
The text was updated successfully, but these errors were encountered: