A seeded random number generator for Unity that uses Unity's own random methods under the hood.
- Random number generator class to use for seeded random number generation.
- Choosing and sampling random items from enumerables.
- Choosing weighted items from enumerables.
- Shuffling enumerables.
To install this package as a package from the OpenUPM registry in the Unity Editor, use the following steps:
- In the Unity editor, navigate to Edit › Project Settings... › Package Manager.
- Add the following Scoped Registry, or edit the existing OpenUPM entry to include the new Scope:
Name: package.openupm.com
URL: https://package.openupm.com
Scope(s): com.audune.utils.random
- Navigate to Window › Package Manager.
- Click the + icon and click Add package by name...
- Enter the following name in the corresponding field and click Add:
com.audune.utils.random
To install this package as a Git package in the Unity Editor, use the following steps:
- In the Unity editor, navigate to Window › Package Manager.
- Click the + icon and click Add package from git URL...
- Enter the following URL in the URL field and click Add:
https://github.com/audunegames/random-numbers.git
Contributions to this package are more than welcome! Contributing can be done by making a pull request with your updated code.
This package is licensed under the GNU LGPL 3.0 license. See LICENSE.txt for more information.