mirror of
https://github.com/lua/lua.git
synced 2026-06-08 08:03:49 +00:00
The call 'math.rand()' converts the higher bits of the internal unsigned integer random to a float, instead of its lower bits. That ensures that Lua compiled with different float precisions always generates equal (up to the available precision) random numbers when given the same seed.
18 KiB
18 KiB