>
> Does this help?
>
> sage: R = RealField(100)
> sage: R.random_element(1, 1+1/10^16)
> 1.0000000000000000745276341034
> sage: R.random_element(1, 1+1/10^16)
> 1.0000000000000000899962307929
>
> and so on.  Note that if you try to use RR (which is the same as
> RealField(53)) you run into the same precision/roundoff problem as you
> had before.  Hence the need to increase the working precision.
>
> Also note that R.random_element() can only do uniform distribution, so
> if you were hoping for something fancier this won't help.
>



thanks everyone, got it.  As it happens I know the quantile function so
this solution is fine for me.



-- 
Robin Hankin
Uncertainty Analyst
[email protected]

-- 
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-support
URL: http://www.sagemath.org

Reply via email to