bevy_simple_random 0.1.0

A crate for easily adding random number generation to Bevy.
Documentation
bevy_simple_random-0.1.0 has been yanked.

Bevy Simple Random

[!NOTE] I kindly request that, while welcome, forks are kept in free forges such as Codeberg. Though it is not within my control, I do not wish for my projects to be hosted on GitHub. For more info, see: Give Up GitHub!

Bevy simple random is crate for using random number generators in with WASM support.

To use, simply initialize a global rng resource:

app.insert_resource(ChaChaGlobalRng::from_time());

then you can use it access it from a system as a resource:

fn system(mut rng: ResMut<ChaChaGlobalRng>)

Alternatively you can attach your rng to an entity:

app.spawn(ChaChaEntityRng::from_time());

then you can use it access it from a system as a component:

fn system(rng: Query<&mut ChaChaEntityRng>)

Contributing to Bevy Simple Random

This project has a strict "no LLMs" policy. Do not even use LLMs for analysing/examining the code. Also, please abide by the Code of Conduct when interacting and contributing to this project.

License

Licensed under either of

at your option.