]> git.nega.tv - josh/narcissus/commit
narcissus-core: Improve float random generation
authorJoshua Simmons <josh@nega.tv>
Sun, 31 Mar 2024 03:22:24 +0000 (05:22 +0200)
committerJoshua Simmons <josh@nega.tv>
Sun, 31 Mar 2024 03:22:24 +0000 (05:22 +0200)
commit7473e4141d74f7e9d3c5e79c0afb83cc8773b333
treee4b896d5c77cb8aacada25ec091238f3acc9189e
parentf742113d56658ce676a1b07bb6625aea17518313
narcissus-core: Improve float random generation

Change `next_f32` to output in the range `[0.0,1.0)`.
Add `next_f64`.
Add very basic smoke test.
engine/narcissus-core/src/rand.rs
title/shark/src/main.rs