dimanche 16 décembre 2018

How do I generate a fixed number with Python

I can generate numbers with a Python random module, but I can't give fixed numbers and lengths.

Example: I want a figure of 10 characters long: 960103941902 like this. But Some characters would get fixed like the original 960 For Example:

960854382818
960388177281
960888127718
960288321883

What is the code to provide this output?




Aucun commentaire:

Enregistrer un commentaire