MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Weighted random number generator 

Subject: Weighted random number generator From: stinkinrich88 Coombez Date: 22 Jul, 2008 09:00:09 Message: 1 of 20 
Hello, 
Subject: Weighted random number generator From: Bruno Luong Date: 22 Jul, 2008 09:21:03 Message: 2 of 20 
"stinkinrich88 Coombez" <stinkinrich88@gmail.com> wrote in 
Subject: Weighted random number generator From: NZTideMan Date: 22 Jul, 2008 09:29:57 Message: 3 of 20 
On Jul 22, 9:00=A0pm, "stinkinrich88 Coombez" <stinkinric...@gmail.com> 
Subject: Weighted random number generator From: John D'Errico Date: 22 Jul, 2008 09:53:01 Message: 4 of 20 
"stinkinrich88 Coombez" <stinkinrich88@gmail.com> wrote in message 
Subject: Weighted random number generator From: stinkinrich88 Coombez Date: 22 Jul, 2008 11:12:03 Message: 5 of 20 
"John D'Errico" <woodchips@rochester.rr.com> wrote in 
Subject: Weighted random number generator From: vedenev Date: 22 Jul, 2008 11:28:14 Message: 6 of 20 
I had such task and solve it. Here is the code of generator of random 
"stinkinrich88 Coombez" <stinkinrich88@gmail.com> wrote in 
Subject: Weighted random number generator From: stinkinrich88 Coombez Date: 22 Jul, 2008 13:41:03 Message: 8 of 20 
vedenev <vedenev.maxim@gmail.com> wrote in message 
Subject: Weighted random number generator From: stinkinrich88 Coombez Date: 22 Jul, 2008 13:45:05 Message: 9 of 20 
"Adam " <not.real@email.com> wrote in message 
"stinkinrich88 Coombez" <stinkinrich88@gmail.com> wrote in 
Subject: Weighted random number generator From: Peter Boettcher Date: 22 Jul, 2008 15:24:32 Message: 11 of 20 
"stinkinrich88 Coombez" <stinkinrich88@gmail.com> writes: 
Subject: Weighted random number generator From: stinkinrich88 Date: 22 Jul, 2008 15:42:01 Message: 12 of 20 
"Adam " <not.real@email.com> wrote in message 
Subject: Weighted random number generator From: stinkinrich88 Date: 22 Jul, 2008 15:55:06 Message: 13 of 20 
Peter Boettcher <boettcher@ll.mit.edu> wrote in message 
Subject: Weighted random number generator From: Roger Stafford Date: 22 Jul, 2008 16:17:02 Message: 14 of 20 
"stinkinrich88 Coombez" <stinkinrich88@gmail.com> wrote in message 
Subject: Weighted random number generator From: Roger Stafford Date: 22 Jul, 2008 16:56:02 Message: 15 of 20 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in 
Subject: Weighted random number generator From: stinkinrich88 Date: 22 Jul, 2008 17:24:02 Message: 16 of 20 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> 
Subject: Weighted random number generator From: John D'Errico Date: 22 Jul, 2008 18:10:19 Message: 17 of 20 
"stinkinrich88 Coombez" <stinkinrich88@gmail.com> wrote in message 
I'm trying to do something very similar and I'm still confused on how to do it. Maybe what I'm doing is a bit different. Normally the random number generator has an equal probability of producing a number between 1 and zero. I would like to have the probability distribution fit the cosine squared function, with a shift. So the probability of getting a zero is the highest and the probability of getting pi/2 or pi/2 is zero. Does that make sense? 
Subject: Weighted random number generator From: stinkinrich88 Date: 26 Mar, 2011 10:27:02 Message: 19 of 20 
"Tim " <junk@gmail.com> wrote in message <imjeks$hc8$1@fred.mathworks.com>... 
Subject: Weighted random number generator From: Roger Stafford Date: 29 Mar, 2011 03:14:03 Message: 20 of 20 
"Tim " <junk@gmail.com> wrote in message <imjeks$hc8$1@fred.mathworks.com>... 
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.