random number generator function
What is SAGE's equivalent of Mathematica's RandomReal[] function?
What is SAGE's equivalent of Mathematica's RandomReal[] function?
I don't know much about Mathematica but from looking at the description here I think you want random_element(). Typing
RR.random_element(-10,10)
will produce a random real between -10 and 10. Change the upper and lower limits as you need.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2013-12-04 22:28:11 +0100
Seen: 7,020 times
Last updated: Dec 06 '13
interface with mathematica in notebook
Round trip through Mathematica's FullSimplify
Easy way to get repeatable random number sequences.
Converting from Mathematica output
Mathematica graphics in a sage notebook
full simplify, sage vs mathematica
See if the [random_element](http://www.sagemath.org/doc/reference/rings_numerical/sage/rings/real_mpfr.html) command is what you want. For example RR.random_element(-10,10)
Yes, thank you. That's what I was looking for.
@dazedANDconfused - please put this as an answer so that Tom can accept it :)