# Custom Random Variable

**URL:** <https://forum.mimiframework.org/t/custom-random-variable/119>\
**Category:** Uncategorized\
**Created:** [May 6, 2020, 11:53pm UTC](https://forum.mimiframework.org/t/custom-random-variable/119 "2020-05-06T23:53:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ckingdon95](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.mimiframework.org/ckingdon95/32/15_2.png) [@ckingdon95](https://forum.mimiframework.org/u/ckingdon95)\
**Post date:** [May 7, 2020, 8:26pm UTC](https://forum.mimiframework.org/t/custom-random-variable/119/2 "2020-05-07T20:26:57Z")

</div>

There is a custom distribution type defined in Mimi for this case called an `EmpiricalDistribution` with the following constructor:

```auto
Mimi.EmpiricalDistribution(values, probabilities)

```

---

_[View the full topic](https://forum.mimiframework.org/t/custom-random-variable/119)._
