Iterate from mid way

I have got 8 random values from 100 to 1000 and i generate that for thousand iterations. For an example i=1:1000 Now i want to generate the same random values which i generated from 1:1000 from 315:415 .. how can i initialize this?

4 Commenti

madhan ravi
madhan ravi il 4 Ago 2018
But what do you mean by same random values , can you elaborate this part?
Eranja Noopehewa
Eranja Noopehewa il 5 Ago 2018
initially I start from 1st iteration and do it for thousand iterations. That time i generate some random values. Now simply i want to run it from the 315th iteration and stop it from the 415th iteration
KALYAN ACHARJYA
KALYAN ACHARJYA il 5 Ago 2018
Modificato: KALYAN ACHARJYA il 5 Ago 2018
And you want the same number should be generated. Your question is not clear for me, can you elaborate, what you exactly want
Aquatris
Aquatris il 5 Ago 2018
did you look into rng() function? I think your answer lies there but we cannot help you further unless you explain what you want more clearly.

Risposte (0)

Questa domanda è chiusa.

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by