# std.rand: fixup 'improve random float generation' · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1d5ea10bee39c6378c5d41597ed477075c3c667f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1d5ea10bee39c6378c5d41597ed477075c3c667f

Requested commit: 1d5ea10bee39c6378c5d41597ed477075c3c667f

Commit: 1d5ea10bee39c6378c5d41597ed477075c3c667f

Tree: 92fa79b1cbaf0eb4673f7c9f69b848ebb733aa41

Author: Erik Arvstedt

Committer: Erik Arvstedt

## Message

```
std.rand: fixup 'improve random float generation'

- Test: Fix bucket counting. Previously, the first hit was not counted.
  This off-by-one error slightly increased the mean of `*_total_variance`,
  which decreased the acceptance rate for a particular random seed
  from 95% to 92.6%. (Irrelevant for test failure because the seed is fixed.)
- Improve comments

```

## Parents

- [7bedeb9659af84daab33a4804c54b4c8811c0c5d](https://git.cafe/gitcafe/zig/commit/7bedeb9659af84daab33a4804c54b4c8811c0c5d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1d5ea10bee39c6378c5d41597ed477075c3c667f?format=markdown)
