# Generating random functions (as opposed to random numbers)

**URL:** <https://discourse.julialang.org/t/generating-random-functions-as-opposed-to-random-numbers/62328>\
**Category:** General Usage\
**Tags:** question, random\
**Created:** [June 3, 2021, 11:40am UTC](https://discourse.julialang.org/t/generating-random-functions-as-opposed-to-random-numbers/62328 "2021-06-03T11:40:51Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![pablosanjose](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pablosanjose/32/7006_2.png) [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Post date:** [June 3, 2021, 12:45pm UTC](https://discourse.julialang.org/t/generating-random-functions-as-opposed-to-random-numbers/62328/12 "2021-06-03T12:45:47Z")

</div>

> [@pablosanjose](#):
>
> And do you know if hashes are uniformly distributed in the whole `UInt` range?

It seems that, [ideally, yes](https://en.m.wikipedia.org/wiki/Hash_function).

But “Note that this criterion only requires the value to be _uniformly distributed_ , not _random_ in any sense. A good randomizing function is (barring computational efficiency concerns) generally a good choice as a hash function, but the converse need not be true.”

---

_[View the full topic](https://discourse.julialang.org/t/generating-random-functions-as-opposed-to-random-numbers/62328)._
