On Friday, November 13, 2015 at 1:18:07 PM UTC-8, Dima Pasechnik wrote: > > how one would then run a randomised algorithm in parallel? (e.g. testing > property with random input) > In such a case one certainly need something orthogonal to this. > Something like this?
@parallel > def f(a): > > sage.misc.randstate.set_random_seed(sage.misc.randstate.current_randstate().seed()+os.getpid()) > return a+random() > You might want to use a better source, because the pid will not have much entropy. I would think this is the kind of thing that is worth documenting somewhere. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.