# Questions about Call Random\_number in gfortran

**URL:** <https://fortran-lang.discourse.group/t/questions-about-call-random-number-in-gfortran/7246>\
**Category:** Uncategorized\
**Created:** [January 22, 2024, 4:36pm UTC](https://fortran-lang.discourse.group/t/questions-about-call-random-number-in-gfortran/7246 "2024-01-22T16:36:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [January 22, 2024, 5:53pm UTC](https://fortran-lang.discourse.group/t/questions-about-call-random-number-in-gfortran/7246/6 "2024-01-22T17:53:04Z")

</div>

It is unlikely that 32 integers provided by the user by hand will have high entropy, which ideally they should.

> [@Reproducible use of random\_number with a single integer seed](https://fortran-lang.discourse.group/t/reproducible-use-of-random-number-with-a-single-integer-seed/3593/3):
>
> The seeds should not have low entropy, [according to NAG](https://www.nag.com/nagware/np/r62_doc/manual/compiler_2_12.html). I think I read something similar about the seeds for the Intel Fortran RNG. The aim of my random\_init\_zig subroutine is to let the user specify high-entropy seeds by supplying a single integer. The random number generator supplied as the intrinsic subroutine RANDOM\_NUMBER is the “Mersenne Twister”. Note that this generator has a large state (630 32-bit integers) and an extremely long period (approx 106000), and therefore it is strongly…

---

_[View the full topic](https://fortran-lang.discourse.group/t/questions-about-call-random-number-in-gfortran/7246)._
