edited-making value 0
Mostrar comentarios más antiguos
In my previous posts the answer is correct,but every time i run i get different answer,randperm is used,but i dont want to values to e b echanged wen i run different times,please help
Respuesta aceptada
Más respuestas (1)
Andreas Goser
el 2 de Feb. de 2012
0 votos
So you want to have random number, but always the same set of random numbers? Check out RandStream.
2 comentarios
kash
el 2 de Feb. de 2012
Bjorn Gustavsson
el 2 de Feb. de 2012
Kash, you answer before checking RandStream. That way you happen to give a comment that make you appear "less intelligent than you'd want to". Check out the documentation of RandStream, then answer.
HTH
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!