jeudi 22 mars 2018

Define a vector with random steps

I want to create an array that has incremental random steps, I've used this simple code.

t_inici=(0:10*rand:100);

The problem is that the random number keeps unchangable between steps. Is there any simple way to change the seed of the random number within each step?




Aucun commentaire:

Enregistrer un commentaire