How do i generate random numbers between given limits in simulink. For ex: between 25 - 30. At every sample time one of the value between 25 to 30 should be given out. (could be25, 26 , 30, 28, 25, 29, etc.,)
Thanks,
Ashwini
Hi Ashwini,
If you wanted a uniform distribution and you have the Communications Blockset
product, then you can use the Random Integer Generator block to generate
integers between 0 and 5 (so M-ary number = 6). Then use a Bias block to add 25
to the result.
http://www.mathworks.com/access/helpdesk/help/toolbox/commblks/ref/randomintegergenerator.html
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/bias.html
HTH,
Amanda