On Friday, 13 November 2015 18:02:14 UTC, William wrote: > > > > On Friday, November 13, 2015, Sébastien Labbé <sla...@gmail.com > <javascript:>> wrote: > >> Is this a feature or a bug? >> >> > Feature - the calls all happen at once starting with the same state of > sage including the random state. >
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. > > > >> >> sage: @parallel >> ....: def f(a): >> ....: return a+random() >> ....: >> sage: [v for _,v in f(range(10))] >> [0.20150303719720475, >> 1.2015030371972046, >> 2.2015030371972046, >> 3.2015030371972046, >> 4.201503037197205, >> 5.201503037197205, >> 6.201503037197205, >> 7.201503037197205, >> 8.201503037197204, >> 9.201503037197204] >> >> Sébastien >> > > -- 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.