another random thing i learned recently is a neat way to get uniformly distributed floating point numbers 0.0 <= n < 1.0
(double)(pcg64_random(rng) >> 11) * 0x1.0p-53
i blogged about it!
https://dotat.at/@/2023-06-23-random-double.html
Ⓐ{DHD,utistic} doggirl • bird photography, retrocomputing, speedrunning, osu, rust, (insert special interest here) • 1/6 of the servo team at @igalia • ≡ƒÅ│∩╕ÅΓÇìΓܺ∩╕Å <3 @ariashark @bark
![]() | ![]() | ![]() |
|---|
![]() | ![]() | ![]() |
|---|
![]() |
|---|
| a |
|---|
| wawawawawawawawawawawawawawawawawawawawa |
another random thing i learned recently is a neat way to get uniformly distributed floating point numbers 0.0 <= n < 1.0
(double)(pcg64_random(rng) >> 11) * 0x1.0p-53
i blogged about it!
https://dotat.at/@/2023-06-23-random-double.html