Оригинал: http://pikabu.ru/story/generator_sluchaynyikh_chisel_3650287