How to generate random number within a range?

1 次查看(过去 30 天)
I want to generate a random number between 0.2 to 1

采纳的回答

Stephen23
Stephen23 2020-1-27
>> 0.2+(1-0.2)*rand()
ans =
0.85178

更多回答(0 个)

类别

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