Noise Seed

Hi,

 

I am trying to add in an error model into my simulation. I come across this term "seed" in many articles and i do not have much knowledge on it. While i understand that this is needed to generate random noise values but i wish to know how do i define/calculate this "seed" value? Please advise.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • It's just a number. Most random() functions require a "seed" number - because they aren't truly random-number functions they are just produce pseudo-random number sequences. If you run the program twice with the same value as "seed", you will get the same sequence of numbers from random(). The solution is to choose a different number for "seed" each time - perhaps get the system time and use the number of microseconds as the "seed" value to the first random() call.
This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…