Generating random number, mathlab

2 次查看(过去 30 天)
Plese how can I generate a single uniformly distributed random number between 0 and 1
ie U(0,1)

回答(1 个)

Erivelton Gualter
Erivelton Gualter 2019-12-10
help rand
random_number = rand(1)

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by