mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
@@ -118,7 +118,7 @@ macro bool next_bool(random)
|
||||
macro float next_float(random)
|
||||
{
|
||||
uint val = random.next_int() & (1 << 24 - 1);
|
||||
return val / (float)(1 << 24);
|
||||
return val * 0x1.0p-24f;
|
||||
}
|
||||
|
||||
<*
|
||||
|
||||
Reference in New Issue
Block a user