difference between random number generators
Afficher commentaires plus anciens
There're two different function in matlab which generate uniform or normal random varibles, rand and unifrnd, randn and normrnd. Can anyone tell me what the difference between rand and unifrnd?
Réponses (1)
the cyclist
le 16 Oct 2011
1 vote
Both functions generate from a uniform distribution. rand() generates values on [0,1]; unifrnd() takes additional input arguments to specify the endpoints. You can read details with "doc rand" and "doc unifrnd".
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!