{"repo":"ZorPastaman/Random-Generators","free":true,"listed":false,"github":"https://github.com/ZorPastaman/Random-Generators","clone":"git clone https://github.com/ZorPastaman/Random-Generators.git","description":"Random generators for Unity is a collection of random generators, different distributions, modificators and filters.","language":"C#","stars":40,"topics":["unity","random-generator","random-distributions","random-modificators","random-distribution","random-generators","random-modificator"],"license":"MIT","category":"game-templates","readme_excerpt":"Random Generators Random generators for Unity is a collection of random generators, different random engines, distributions, modificators and filters. The library has a useful infrastructure that makes it easy to expand it and add new distributions, modificators, filters and random generators. The library is very fast and heap allocation free. Installation This repo is a regular Unity package. You can install it as your project dependency. More here: https://docs.unity3d.com/Manual/upm-dependencies.html. Usage 1. Create a provider from Assets/Create/Random Generator Providers/ or choose one of pre-made providers among DefaultBoolUniformGeneratorProvider , DefaultIntUniformGeneratorProvider , DefaultFloatUniformGeneratorProvider , DefaultNormalGeneratorProvider and DefaultBatesGeneratorProvider . 2. Add ContinuousGeneratorProviderReference for continuous distributions or DiscreteGeneratorProviderReference for discrete distributions as a serialize field into your component. 3. Link a selected provider into a right provider reference. Toggle on/off Shared. If Shared is on, a generator is created once and reused by all requesters. If Shared is off, a new generator is created for every requester. 4. In your script, call ContinuousGeneratorProviderReference.generator or DiscreteGeneratorProviderReference.GetGenerator () and cache the result. They return a IContinuousGenerator or IDiscreteGenerator that generate a random value. 5. Call Generate() in a gotten generator to get a rando","default_branch":null,"files":null,"tree":[],"storefront":"/r/ZorPastaman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ZorPastaman/Random-Generators/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}