El 12/03/2010, a las 20:19, Jaime Villate escribi?:
> On Fri, 2010-03-12 at 20:14 +0100, Jer?nimo Alaminos Prats wrote:
>> I'm using maxima 5.19.2 and I'm getting some strange results with
>> random. Using random(1.0), I always obtain the same sequence of
>> "random" numbers:
>>
>> .9138095996128959
>>
>> .1951846177977887
>>
>> .4823905248516196
>
> use:
>
> set_random_state(make_random_state(true))$
>
> before using random(1.0). For an explanation, see:
> ? random
>
> Regards,
> Jaime Villate
>
>
Thank you Jaime, I didn't notice that you need that. Just out of curiosity, is there any reason for this need to initialize the random number generator? For me, the usual behavior of "random" anywhere is to obtain a random number.
-------------------------------------
Jer?nimo Alaminos
-------------------------------------
Jer?nimo Alaminos