Dear Burkhard,
The -seed option was introduced to fslmaths in April 2009 to allow
the user to decide how they want the random number generator to work.
If you want to generate the same random sequence then use the default,
otherwise specify different seeds. You can generate a unique seed with
date "+%s"
which would be different every second. That is:
fslmaths origim -mul 0 -seed `date "+%s"` -randn randomim
However, if you are generating many within the same second then you
might want to make these unique with a loop counter or something similar.
It simply depends on what you want to do.
I hope this helps.
All the best,
Mark
On 28 Feb 2011, at 13:15, Burkhard Maedler wrote:
> the original thread is from 2009 - now we have 2011 and the randn function is still not properly implemented!
> Any idea to when it might happen?
>
> BTW-can you tell me how to check for the version of fslmaths?
>
> Burkhard.
>
|