#9770: SphericalDistribution() is not random
--------------------------+-------------------------------------------------
Reporter: schilly | Owner: amhou
Type: defect | Status: new
Priority: major | Milestone: sage-4.5.3
Component: statistics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
In the following list {{{l}}}, some elements repeat quite often:
{{{
sage: l = [ SphericalDistribution(dimension=2).get_random_element() for _
in range(1000)]
sage: uniq = []
sage: for x in l:
if x not in uniq:
uniq.append(x)
....:
sage: len(uniq)
34
}}}
The output is not random. For example, the first line is repeated ~30
times in the 1000 lines of output. It works fine if
!SphericalDistribution is only instantiated once!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9770>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.