The examples have been included in the package and are imported when the Rest Server package is installed. They can be found in the package directory (usually de.bearo.generalrandom) in the subdirectory Samples.
Simulates the random terrain generation inspired by Nightride FM YouTube channel. It simulates terrain generation by dropping grains of sand at specific places on the terrain. If they hit a non-ground-level terrain these start rolling “down” in random directions.
This is a very simple demo by generating a random value for each pixel. Every pixel has a 50% probability to be black or white.
A simple random loot example which allows to change the probability for each item.
Generates random names by choosing a starting character at random and the next character depending on the probability in the english language. Only accounts for tuples and their probabilities. A production ready model would include more language specifics.
Demonstrates the RouletteDistribution. Each target is a bucket and the probability of each target can be adjusted, Spheres are then randomly distributed among the targets.
Another example for RouletteDistribution as a cheap way to generate every distribution imaginable. The distribution doesn’t have to follow any usual constraints, but the generation is slow.