Brandon Morgan
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
I have a random number generator when the input selects the interval length and only runs it if it is between 50 and 200. I was wondering how do I round the output of random numbers so that they are only integers?(ex. 0,1,2,3,4,5,6,7,8,9 )
n= input('Enter Vector Size'); if n>=50 && n<=200 R= [0,1,2,3,4,5,6,7,8,9]; z = rand(n,1)*range(R)+min(R) ...
6 years 前 | 0 个回答 | 0
0
个回答提问
Can anyone explain or show how to do this?
Prompt the user to enter a second INTEGER number (num2) from the keyboard where 2≤num2 ≤15 and then determine how many terms in...
6 years 前 | 1 个回答 | 0