6605f56756
Replaces the custom LCG implementation with `fastrand` for improved random number generation. This commit introduces the `fastrand` crate to the project for robust and efficient pseudo-random number generation. The `Environment` struct now includes a `prng` field to hold the random number generator. The built-in `random` function now utilizes this PRNG for generating floating-point random numbers. A new `seed!` function is added to allow users to seed the PRNG for deterministic random sequences. This change enhances the randomness capabilities of the language, making it suitable for simulations and other applications requiring good quality random numbers.
16 lines
279 B
TOML
16 lines
279 B
TOML
[package]
|
|
name = "myc"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
default-run = "myc"
|
|
|
|
[dependencies]
|
|
eframe = "0.33.3"
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
chrono = "0.4"
|
|
regex = "1.10"
|
|
fastrand = "2.3"
|
|
|
|
[dev-dependencies]
|
|
insta = { version = "1.39", features = ["yaml"] }
|