The random code generator as well as the random string generator work on the same principle. They are responsible for creating random character sets. The difference is only in the naming. The random integer generator is responsible for creating strings of characters which only consist of digits. With a code generator/string generator, it is possible to generate random numbers if only digits are selected in the set of allowed characters.