-
Notifications
You must be signed in to change notification settings - Fork 134
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
set_random(2025) returns false. #2754
Comments
????????????????????????????? |
Expected is a domain error. ?- set_random(seed(2025)). true. % expected Any solutions where the argument is an integer? ?- length(_, L), set_random(L). loops, unexpected. |
Thanks for this clarification, @triska! Random seeds are (in my experience) usually understood to be integers, so I wasn't expecting to need the This raises the question, however, what useful function |
The wrapper
For comparison, please see the SICStus version and possibly other proposals too: https://sicstus.sics.se/sicstus/docs/latest/html/sicstus.html/lib_002drandom.html |
I see there's an entire Rust Rand Book, and wonder if the best approach for Scryer might be to leverage this by providing a straightforward interface to those facilities. This could at least serve to flesh out an interface to multiple generators, etc. Presumably, the intense interest in Rust from the scientific community would ensure that this crate is heavily used, tested, etc. Also, someone from that community coming to Scryer would immediately be familiar with the menagerie of RNG options, and able to port work into Scryer as desired. In any case, I think this is now a non-Issue, and should be closed. |
Note that there have been talks in #2670 about doing exactly that :) |
The text was updated successfully, but these errors were encountered: