The latest version may be able to do what you require with the Multi-Riffs feature. You should be able to generate a specified number of bars, and then save a selected result as a WAV file.

Check out this video tutorial



BIAB & RB2025 Win.(Audiophile), Sonar Platinum, Cakewalk by Bandlab, Izotope Prod.Bundle, Roland RD-1000, Synthogy Ivory, Kontakt, Focusrite 18i20, KetronSD2, NS40M Monitors, Pioneer Active Monitors, AKG K271 Studio H'phones