help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: intermittent error "undefined near line..."


From: Yuval Lifshitz
Subject: Re: intermittent error "undefined near line..."
Date: Mon, 17 Dec 2012 06:15:48 -0800 (PST)

I see that now:
" By default, the generator is initialized from `/dev/urandom' if it
     is available, otherwise from cpu time, wall clock time and the
     current fraction of a second."
Descriptions is very clear :-) but I was wondering why is the default behavior different than the one of C and matlab rand() functions?


From: Jordi Gutiérrez Hermoso <address@hidden>
To: Yuval Lifshitz <address@hidden>
Cc: Dmitri A. Sergatskov <address@hidden>; "address@hidden" <address@hidden>
Sent: Monday, December 17, 2012 3:52:41 PM
Subject: Re: intermittent error "undefined near line..."

On 17 December 2012 05:43, Yuval Lifshitz <address@hidden> wrote:
> * the w_draws_b array is randomly initialized, but i thought that random
> values should be identical in any execution of octave (unless I seed them to
> time, which i don't)

No, rand() isn't always seeded to the same state. Please read "help
rand" for a description of this. If you find this description
confusing, please state how, so we can improve it.

- Jordi G. H.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]