MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > generating 2 numbers.. 

I want to generate 2 number say x and y where x<y. How do i do that? 
"asma khalid" <asma_167@hotmail.com> wrote in message <ibf85m$r4g$1@fred.mathworks.com>... 
One of you many many ways to do this. 
"asma khalid" <asma_167@hotmail.com> wrote in message <ibf85m$r4g$1@fred.mathworks.com>... 
On 101110 05:00 PM, asma khalid wrote: 
Im sorry John. What i meant was that I want to generate two random numbers x and y where x should be less than y. 
Thank You Sean. If I need 10 such random numbers x and y such that x<y how should i do that. 
"asma khalid" <asma_167@hotmail.com> wrote in message <ibgnig$khe$1@fred.mathworks.com>... 
Dear Sean, 
"asma khalid" <asma_167@hotmail.com> wrote in message <icha84$meh$1@fred.mathworks.com>... 
Yes, I want to generate random numbers and i want the same numbers to appear every time i run my program. my actual work is dealing with 1000 random numbers ....i think i could save the result in an mfile and call it when i work on it further.. 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.