shouldn't each thread run its own random number generator?

On Friday, 13 November 2015 11:11:57 UTC, Sébastien Labbé wrote:
>
> Is this a feature or a bug?
>
> 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.

Reply via email to