diff --git a/src/Numerics/Distributions/Beta.cs b/src/Numerics/Distributions/Beta.cs
index 61c1c63a..1bf6f5f9 100644
--- a/src/Numerics/Distributions/Beta.cs
+++ b/src/Numerics/Distributions/Beta.cs
@@ -100,8 +100,9 @@ namespace MathNet.Numerics.Distributions
/// The minimum value.
/// The maximum value.
/// The most likely value (mode).
+ /// The random number generator which is used to draw random samples.
/// The Beta distribution derived from the PERT parameters.
- public static Beta PERT(double min, double max, double likely)
+ public static Beta PERT(double min, double max, double likely, System.Random randomSource = null)
{
if( min > max || likely > max || likely < min )
{
@@ -131,7 +132,7 @@ namespace MathNet.Numerics.Distributions
double b = (a * (max - mean)) / (mean - min);
- return new Beta(a, b);
+ return new Beta(a, b, randomSource);
}
///