Burocracia::Generator
Module responsible for generating randomic low-level information
Instance methods
random_numbers(size, randomifier = Random)
Generates a string with random numbers.
Burocracia::Generator.random_numbers(size: 3)
=> "139"
If needed, you can pass your own Random instance:
Burocracia::Generator.random_numbers(size: 5, randomifier: MyRandomClass)
=> "002"
NOTE: The randomifier class or module must implement a function called rand
that accepts a Range and returns an Object with a to_s method.