Documentation
=============

interval(min, max)
  - Generates a random value inside the range [min, max] and outputs it to 'out rng' scoreboard. Is expected that min <= max.
  - Use:
      1. Set max value:     scoreboard players set min rng <value>
      2. Set min value:     scoreboard players set max rng <value>
      3. run:               function rng:interval

percentage()
  - Generates a random value inside the range [1, 100] and outputs it to 'out rng' scoreboard
  - Use:
      1. run:               function rng:percentage

uuid_reset()
  - Generates a new seed for the generator
  - Use:
      1. run:               function rng:uuid_reset

percentage_check (predicate)
  - The predicate passes or not following a given percentage value (% scoreboard)
  - Use:
      1. Set % value:       scoreboard players set % rng <value>
      2. run:               execute if predicate rng:percentage run <...>


Example (# 25% chance to trigger a function)
-------
  - trigger function 25% of the time
      function rng:percentage
      execute if score rng out matches ..25 run function <function>

  - trigger say 25% of the time
      scoreboard players set % rng 25
      execute if predicate rng:percentage run function <function>

  - store result (25% of the time will be 1)
      scoreboard players set % rng 25
      execute store result score #%pass rng run execute if predicate rng:percentage



Other
=====
This lib is a modified version of the Cloud Wolf rng generator: https://www.youtube.com/watch?v=fzZASMieGn0
