Generates a random sample of size n from the desired triangular distribution with parameters, a and b.

1 | ```
rtriangular(n, a, b)
``` |

`n` |
a numeric value which denotes the sample size. |

`a` |
a numeric value for the first parameter. |

`b` |
a numeric value for the second parameter. |

b should be greater than a.

Returns a vector of sample.

Ozlem Ilk

Ilk, O. (2011). *R Yazilimina Giris* [Introduction to R Language]. ODTU Yayincilik [METU Press].

1 | ```
rtriangular(5,1,5)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.