Re: fakeit and random seed

From: Michael Nowak <mnowak_at_email.domain.hidden>
Date: Mon, 23 Mar 2009 16:11:14 -0400
On Mar 23, 2009, at 4:05 PM, Maurice Leutenegger wrote:

> I am wondering about the randomization properties of fakeit. As far  
> as I can tell, if I invoke fakeit with no argument, I will always  
> get the same "random" spectrum, unless I first use seed_random () to  
> set the random number generator. Does this sound right? Is it the  
> expected behavior? Is there a way to get variable random noise in  
> fakeit (or otherwise) without explicitly setting the seed myself?

That is correct, and a fairly common way for random number generators  
to work.  Makes debugging scripts much easier if they behave the same  
way each time.

You could always grab the seed from a time or process id, if you want  
to throw a little more randomness into the mix.


You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
Received on Mon Mar 23 2009 - 16:11:16 EDT

This archive was generated by hypermail 2.2.0 : Thu Apr 09 2009 - 12:57:34 EDT