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
random-int is no longer compatible with the HE version, it needs to support random generators. See https://github.com/trueagi-io/hyperon-experimental/blob/8463e00c6a64fdddd485278bc2ad33fde27451cd/lib/src/metta/runner/stdlib/stdlib.metta#L206-L239
random-int
Run the following code in MeTTaLog
!(random-int (new-random-generator 0) 0 2)
[(random-int (new-random-generator 0) 0 2)]
A random number within [1, 2).
The text was updated successfully, but these errors were encountered:
I must add that there is an undocumented default random generator &rng.
&rng
Sorry, something went wrong.
No branches or pull requests
What is your problem?
random-int
is no longer compatible with the HE version, it needs to support random generators. See https://github.com/trueagi-io/hyperon-experimental/blob/8463e00c6a64fdddd485278bc2ad33fde27451cd/lib/src/metta/runner/stdlib/stdlib.metta#L206-L239How to reproduce your problem?
Run the following code in MeTTaLog
What do you get?
What should normally expect?
A random number within [1, 2).
The text was updated successfully, but these errors were encountered: