difference between random number generators

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?

답변 (1개)

the cyclist
the cyclist 2011년 10월 16일

1 개 추천

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".

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2011년 10월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by