Talk:Pseudo-random numbers/PCG32: Difference between revisions

Content added Content deleted
mNo edit summary
Line 87: Line 87:
--Walter Pachl 08:22, 27 February 2021 (UTC)
--Walter Pachl 08:22, 27 February 2021 (UTC)


64 bit, n <<s is the bigger number. Try masking to 32-bit such as: (n << s ) & 0xffffffff to keep things 32-bit. --[[User:Wherrera|Wherrera]] ([[User talk:Wherrera|talk]]) 08:37, 27 February 2021 (UTC)
::64 bit, n <<s is the bigger number. Try masking to 32-bit such as: (n << s ) & 0xffffffff to keep things 32-bit. --[[User:Wherrera|Wherrera]] ([[User talk:Wherrera|talk]]) 08:37, 27 February 2021 (UTC)


:: but there's no masking in the original pprogram --Walter Pachl 09:14, 27 February 2021 (UTC)
:: but there's no masking in the original pprogram --Walter Pachl 09:14, 27 February 2021 (UTC)

:: In some languages a long is 32 bits and a long long is 64 bits, so in those making it a long masks it to 32 bits. --[[User:Wherrera|Wherrera]] ([[User talk:Wherrera|talk]]) 17:24, 27 February 2021 (UTC)