solutions

## Class S2Random

- java.lang.Object
- - solutions.S2Random

-     public class S2Random
      extends java.lang.Object

  Creation of random numbers distributed according to a triangular distribution

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `S2Random()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] s)`
    `double[]` | `triangularRandomNumbersRej(double a, double b, double c, int n)` Returns n random numbers distributed according to a triangular distribution, created by the rejection method
    `double[]` | `triangularRandomNumbersTrans(double a, double b, double c, int n)` Returns n random numbers distributed according to a triangular distribution, created by the transformation method

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### S2Random

          public S2Random()

  - ### Method Detail

    - #### triangularRandomNumbersTrans

          public double[] triangularRandomNumbersTrans(double a,
                                              double b,
                                              double c,
                                              int n)

      Returns n random numbers distributed according to a triangular distribution, created by the transformation method

    - #### triangularRandomNumbersRej

          public double[] triangularRandomNumbersRej(double a,
                                            double b,
                                            double c,
                                            int n)

      Returns n random numbers distributed according to a triangular distribution, created by the rejection method

    - #### main

          public static void main(java.lang.String[] s)