mardi 28 avril 2015

how to initialize a random vecor in simulations?

I made a random vector say A=random.sample([4,3,5,2],1) and am using this A as initial condition for simulation, so i did that: A=random.sample([4,3,5,2],1) A1=A for simulation A=A1 for time refine A end(time) end(simulation) but the first A for each simulation that should be the same and equal to A1 is changing. can anyone help me to figure it out. thanks




Aucun commentaire:

Enregistrer un commentaire