"random" in Integer simply calls "random" in common lisp.
And I looked at common lisp standard (section 12.9, CLTL2), the standard way to have a new seed is )lisp (setf *random-state* (make-random-state t)) but the detail is implementation dependent. That makes me to think we should have a standard random number generator in FriCAS that is independent on underlying Lisp. On Sat, Feb 23, 2019 at 10:08 PM Ralf Hemmecke <[email protected]> wrote: > > Hello, > > I use random(n)$Integer in a program and use that to generate a > filename. Unfortunately, when I run that program in parallel, i.e., like > two instances of > > cat prog.input | fricas -nosman > > it produces exactly the same random integer. > > Probably understandable, however I haven't found a way to give different > seeds the random number generator. > > Any suggestion? > > In fact, I don't actually care about random numbers if only I get a > unique filename to which I can add different extensions. > > 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/9b2814a7-ee25-a99d-6105-c59d539b3f37%40hemmecke.org. > For more options, visit https://groups.google.com/d/optout. -- 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/CAGBJN90EhWWDBL_zmbUtTPs0_ZqZThq9CeF%2Bqr%3DssE1dhz5D2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
