rng shuffle;

arrayLen = randi( 9 ) + 1;
array = randi( 9 , 1 , arrayLen );
n = randi( arrayLen );

disp( array );
disp( n );
disp( myBubbleSort( array , n ) );