New function to generate barcode sequences