MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Random number for triangular distribution 

Subject: Random number for triangular distribution From: Partha Roy Date: 28 Sep, 2012 06:32:08 Message: 1 of 10 
I want generate random numbers from a triangular distribution. Can anyone help me? 
Subject: Random number for triangular distribution From: Bruno Luong Date: 28 Sep, 2012 06:46:07 Message: 2 of 10 
"Partha Roy" <p_roy_007@yahoo.com> wrote in message <k43g98$ksh$1@newscl01ah.mathworks.com>... 
Subject: Random number for triangular distribution From: Partha Roy Date: 28 Sep, 2012 06:58:07 Message: 3 of 10 
Thanks Bruno Luong, but may be i was not specific what i wanna know. I want to determine random numbers from a triangular distribution like (5,7,10). how can i write the program for this in the M file. Could you help me with this? 
Subject: Random number for triangular distribution From: Bruno Luong Date: 28 Sep, 2012 21:44:08 Message: 4 of 10 
Asymmetrical triangular distribution is more complicated to generated: 
Subject: Random number for triangular distribution From: Roger Stafford Date: 29 Sep, 2012 06:09:17 Message: 5 of 10 
"Partha Roy" <p_roy_007@yahoo.com> wrote in message <k43hpv$plh$1@newscl01ah.mathworks.com>... 
Subject: Random number for triangular distribution From: Bruno Luong Date: 29 Sep, 2012 07:01:13 Message: 6 of 10 
"Roger Stafford" wrote in message <k463ad$dm5$1@newscl01ah.mathworks.com>... 
Subject: Random number for triangular distribution From: Partha Roy Date: 29 Sep, 2012 10:43:08 Message: 7 of 10 
What can I say Roger... Mind Blowing :) 
Subject: Random number for triangular distribution From: Bruno Luong Date: 29 Sep, 2012 10:56:09 Message: 8 of 10 
Might I ask you Roger what leads you to this formula? 
Subject: Random number for triangular distribution From: Roger Stafford Date: 29 Sep, 2012 11:35:08 Message: 9 of 10 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <k46k48$7s3$1@newscl01ah.mathworks.com>... 
Subject: Random number for triangular distribution From: Bruno Luong Date: 29 Sep, 2012 14:49:05 Message: 10 of 10 
"Roger Stafford" wrote in message <k46mdc$equ$1@newscl01ah.mathworks.com>... 
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.