Next 32-bit output, returned as the int32 with the same bit pattern
as the reference implementation’s uint32_t result. Roughly half of
the returned values are therefore negative; use next_real_dp or
next_below if a magnitude is wanted.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(pcg32_t), | intent(inout) | :: | self |
function pcg32_next(self) result(r) !! Next 32-bit output, returned as the `int32` with the same bit pattern !! as the reference implementation's `uint32_t` result. Roughly half of !! the returned values are therefore negative; use `next_real_dp` or !! `next_below` if a magnitude is wanted. class(pcg32_t), intent(inout) :: self integer(int32) :: r r = u32_to_int32(pcg32_step(self)) end function pcg32_next