RandomGenerator RandomGenerator is a little funny name generator. Usage Anywhere in your code put this: \T1nkl\RandomGenerator\Generator::getName(); It always will return a string.