MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Random number generation with specified separation 

Subject: Random number generation with specified separation From: Anindya G Date: 18 Apr, 2013 18:37:17 Message: 1 of 8 
Hello, 
Subject: Random number generation with specified separation From: dpb Date: 18 Apr, 2013 19:00:23 Message: 2 of 8 
On 4/18/2013 1:37 PM, Anindya G wrote: 
Subject: Random number generation with specified separation From: dpb Date: 18 Apr, 2013 19:05:05 Message: 3 of 8 
On 4/18/2013 2:00 PM, dpb wrote: 
Subject: Random number generation with specified separation From: Kumar Vijay Mishra Date: 18 Apr, 2013 20:24:10 Message: 4 of 8 
"Anindya G" wrote in message <kkpegs$m9q$1@newscl01ah.mathworks.com>... 
Subject: Random number generation with specified separation From: dpb Date: 18 Apr, 2013 20:43:33 Message: 5 of 8 
On 4/18/2013 3:24 PM, Kumar Vijay Mishra wrote: 
Subject: Random number generation with specified separation From: Bruno Luong Date: 20 Apr, 2013 07:52:07 Message: 6 of 8 
I'll give solution for (a,b) = (0,1). It is easy to map the results to the interval (a,b). You need to use some tools (MergeBrackets and RangeIntersection) I have developped: 
Subject: Random number generation with specified separation From: Bruno Luong Date: 20 Apr, 2013 08:04:10 Message: 7 of 8 
Note that the method is far from perfect: the distribution is larger at the two ends {0 and 1} if n*delta is close to 1. 
Subject: Random number generation with specified separation From: Bruno Luong Date: 22 Apr, 2013 11:35:09 Message: 8 of 8 
I have simplified a code: 
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.