Random (VRD) is a Rust library for generating high-quality random numbers based on the Mersenne Twister algorithm.
The Mersenne Twister is a pseudorandom number generator (PRNG) that is often used in computer simulations and games. It is a fast and reliable PRNG.
The Random (VRD) is used to generate random numbers using the Mersenne Twister algorithm. It generates pseudorandom integers uniformly distributed in 0..(2^32 - 1) starting from any odd seed in 0..(2^32 - 1).
The index is incremented after each random number is generated. When the index reaches 624, the array is reinitialized and the index is reset to 0.
Features β¨
Create new random number generator and seed it with a value.
Design for speed and efficiency in mind.
Generate random 32-bit unsigned integer within a given range.
Provide random numbers of different types, including booleans, bytes, chars, doubles, floats, integers, and unsigned integers.
Mutate the state of the random number generator.
... (truncated)
Commits
42b7302 Merge pull request #41 from sebastienrousseau/feat/vrd
d3cc8d9 test(vrd): :white_check_mark: add new tests for random.rs
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps vrd from 0.0.6 to 0.0.7.
Release notes
Sourced from vrd's releases.
... (truncated)
Commits
42b7302
Merge pull request #41 from sebastienrousseau/feat/vrdd3cc8d9
test(vrd): :white_check_mark: add new tests forrandom.rs
6b948a3
style(vrd): :art: fixing formatting issues9172e6f
docs(vrd): :memo: updating examples documentation and sorting8d0424c
test(vrd): :white_check_mark: add newtest_new_custom_invalid_parameters
b170687
refactor(vrd): :memo: Update vrd crate example code, documentation and added ...be1fd07
refactor(vrd): :memo: Update vrd crate example code, documentation and added ...106607e
feat(vrd): :seedling: Add MersenneTwisterConfig struct and tests0d84b82
style(vrd): :art: formatted code0ad9424
refactor(vrd): :art: improved log_entry_async and updated unit testsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show