Set a seed for the rng
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(rng_t), | intent(inout) | :: | self | |||
| integer(kind=i8), | intent(in) | :: | the_seed(2) |
subroutine set_seed(self, the_seed) class(rng_t), intent(inout) :: self integer(i8), intent(in) :: the_seed(2) self%s = the_seed ! Simulate calls to next() to improve randomness of first number call self%jump() end subroutine set_seed