# Reaching bounds of Distributions.Uniform()

**URL:** <https://discourse.julialang.org/t/reaching-bounds-of-distributions-uniform/60956>\
**Category:** Statistics\
**Created:** [May 11, 2021, 2:40pm UTC](https://discourse.julialang.org/t/reaching-bounds-of-distributions-uniform/60956 "2021-05-11T14:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [May 11, 2021, 4:05pm UTC](https://discourse.julialang.org/t/reaching-bounds-of-distributions-uniform/60956/5 "2021-05-11T16:05:07Z")

</div>

See also previous discussions such as

> [@How to create a random Uniform Distribution between (but excluding) 0 and 10?](https://discourse.julialang.org/t/how-to-create-a-random-uniform-distribution-between-but-excluding-0-and-10/21908):
>
> Hello, How can I create a random uniform distribution between 0 (which is excluded) and 10 (included). That is, the range is between 0 and 10, but 0 itself cannot be included. using Distributions rand(Uniform(0, 10) Using rand(Uniform(\>0, 10) does not work.

> <https://github.com/JuliaLang/julia/pull/33251>
>
> Fixes #33222.
> 
> Also changed some hardcoded test values accordingly.

---

_[View the full topic](https://discourse.julialang.org/t/reaching-bounds-of-distributions-uniform/60956)._
