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.

Please suggest features or report bugs with the GitHub issue tracker.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.