Pseudo-random numbers/PCG32: Difference between revisions
Content added Content deleted
(Promote to full task status) |
m (→{{header|Phix}}: and_bits comment) |
||
Line 489: | Line 489: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
Phix proudly does not support the kind of "maths" whereby 255 plus 1 is 0 (or 127+1 is -128).<br> |
Phix proudly does not support the kind of "maths" whereby 255 plus 1 is 0 (or 127+1 is -128).<br> |
||
You can however achieve that with and_bits() in most cases, albeit limited to at most 32 bits.<br> |
|||
Phix atoms are limited to 53/64 bits of precision, however (given the above) this task would need 128 bits.<br> |
Phix atoms are limited to 53/64 bits of precision, however (given the above) this task would need 128 bits.<br> |
||
First, for comparison only, this is the usual recommended native approach for this genre of task (different output) |
First, for comparison only, this is the usual recommended native approach for this genre of task (different output) |