Added random number and total length