I think you can feed the seed you like to rand.
So you can choose the same (known) generator for as long as you want. I did this
in C but also Matlab should let you. Check the help on how to do
it.
Antonio
----- Original Message -----
From: feluda_n_byomkesh_fan
To: m...@yahoogroups.com
Sent: Tuesday, March 01, 2005 6:12 PM
Subject: [matlab] Re: fix random rumbers
Use help on randn. The relevant sentence
for you is.
RANDN('state',0) resets the generator to its
initial state.
Hope this helps, Nandan
--- In
m...@yahoogroups.com, Romain Govav <rivagovav@y...> wrote: > > Dear all, > > I am writing a program within which I am
genereting > random normal numbers. I would like to get the same > random numbers from run to run. This helps me to check > my
program. > > Can anybody help me? > > thanks
in advance > Romain
NEW! You can now
post a message or access and search the archives of this group on
DSPRelated.com: http://www.dsprelated.com/groups/matlab/1.php
_____________________________________ Note: If you do a simple "reply"
with your email client, only the author of this message will receive your
answer. You need to do a "reply all" if you want your answer to be
distributed to the entire group.
_____________________________________ About this discussion group:
Reply by feluda_n_byomkesh_fan●March 1, 20052005-03-01
Use help on randn. The relevant sentence for you is.
RANDN('state',0) resets the generator to its initial state.
Hope this helps,
Nandan
--- In , Romain Govav <rivagovav@y...> wrote: >
> Dear all,
>
> I am writing a program within which I am genereting
> random normal numbers. I would like to get the same
> random numbers from run to run. This helps me to check
> my program.
>
> Can anybody help me?
>
> thanks in advance
> Romain
Reply by Romain Govav●March 1, 20052005-03-01
Dear all,
I am writing a program within which I am genereting
random normal numbers. I would like to get the same
random numbers from run to run. This helps me to check
my program.