I will just add that you can find documentation for the random()
function in the E-Basic Help facility.
-- David McFarlane
At 11/7/2013 10:21 PM Thursday, gorgeous yayuan geng wrote:
>Dear Sihua,
>
>c = random(a(1), a(4)) . I think this code is the reason. You
>originally want to get a random number from 6,3,7,2,which is in the
>array a, but your code is to select a value randomly from 6 to 2,
>which means you get a random value from 2,3,4,5,6. and I wonder if
>you can successfully complie the code since random function needs
>the first parameter as min, the second parameter as max.
>so I would recommend that you get a random value from 1,2,3,4 .I'd
>better give you codes:
>t=random(1,4)
>c=a(t);
>s=random(1,3)
>d=b(s)
>
>
>
>
>2013/11/8 sihua xu <<mailto:
xusi...@gmail.com>
xusi...@gmail.com>