opened
Abhi561
username_0
how to generate random barcodes using python
random barcode  generating
issue
created
jonemo
username_1
```
import barcode
import random
from barcode.writer import ImageWriter

EAN = barcode.get_barcode_class('ean13')
eannum = random.randint(1000000000000, 9999999999999)
EAN(str(eannum), writer=ImageWriter()).save('myrandombarcode')
```

Saves a file `myrandombarcode.png` with a different random barcode each time you run it.
comment