5/04/2023

Generate EAN13 barcode number as random

refer to code:


.

def generate_random_ean13():
number = [random.randint(0, 9) for _ in range(12)]
number_str = ''.join(str(digit) for digit in number)
ean = EAN13(number_str)
return ean.get_fullcode()

..


Thank you.

study.marearts.com


No comments:

Post a Comment