mercredi 9 juin 2021

how to generate all the numbers in the range? in python

how do I generate all the numbers in the given range without repeat this is the code that i wrote:-

import random
random_number = random.randint(55340232221128655000,73786976201083584000)
hex_number =format(random_number,'x')
hex_number = ''+hex_number
fullurl = '00000000000000000000000000000000000000000000000'+str(hex_number)
print(fullurl)

how to generate all the numbers between 55340232221128655000 and 73786976201083584000 without any repeat




Aucun commentaire:

Enregistrer un commentaire