Hi Qian, than you for your lisp statement.
> That makes me to think we should have a standard random > number generator in FriCAS that is independent on underlying Lisp. Hmmm... right. But we have. http://fricas.github.io/api/RandomNumberSource Unfortunately, there is no function that generates a truely random seed from the time or /dev/[u]random. What about adding a new runtime support function like your (setf *random-state* (make-random-state t)) and make that available in RandomNumberState. I don't know whether it would be wise to replace random$Integer that is implemented by just calling RANDOM$Lisp by reference to RandomNumberState. Anyway, it would be nice to have add function that initializes the seed by some truely random value. Currently I see no source to get such a random value (except calling Lisp directly -- which I want to avoid in my code). Ralf -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/6b5ad0a9-58ea-9661-8440-dfd9019de0bf%40hemmecke.de. For more options, visit https://groups.google.com/d/optout.
