Hi,
There are multiple ways how to archive it. A possible style set-up would be to use "randomly shifted" Segments by the Transform - X Fixed Translation linked to the Random Parameter set to Generate on Array Y Row. Another option would be to have in the Left Side slot of the Array 2S Generator "Randomly Sized" Segments (in the similar way as described above). Hope that helps.
Best regards,