MATLAB: Not choosing random numbers from the range specified random xrange = 50:100;a= randi(numel(xrange),10,1); why is it not choosing from the range 50 to 100? can anyone help me? Best Answer Because that's not how that function is called.If you want to randomly select 10 numbers within the range of 50 and 100 this is the command:randi([50,100],10,1) Related SolutionsMATLAB: Creating random error numbers within specified range. Example 1: Generate values from the uniform distribution on the interval (a, b). r = a + (b-a).*rand(100,1); MATLAB: Random numbers help randdoc rand Related QuestionExcel Range in specifies Sheet.Specify display range in imoverlayHow to generate random integer in the inclusive range from 1 to 10
Best Answer