Re: HP Prime: RANDOM Message #4 Posted by Han on 16 Oct 2013, 2:14 p.m., in response to message #1 by Alberto Candel
Quote:
Good Morning,
From Home, Toolbox- Math- Probability - Random - Number sets up the RANDOM function which inputs two numbers and outputs a random number in between those two. Produces a display like
RANDOM(1,100) 99.2856397571
In CAS, the same sequence of key presses produces the display
RANDOM(1+100*i) 20.2759023826
I wonder what is the role of the "i" in RANDOM. That is, I did not input "i" to RANDOM, I typed RANDOM(1,100) but it displayed the line above.
Thanks!
(a,b) is interpreted by the CAS parser to mean complex numbers. Ideally, though, RANDOM should have actually parsed RANDOM(1,100) "properly" and only assume a complex input when typing RANDOM((1,100)) -- we can only hope that they can find a way to do this for the next firmware.
|