GENERATE A NUMBER STRING

Hello; I would like to generate a string of that only contains numbers; I read security part of guide but as I understand it can’t generate numbers only and I don’t know how to make it generate only 4 digits

Sorry, but are you serious? …