To get each time random row from 2D array

I want to get a random row from a 2D array for any number of times

My doubt: If a want to generate a random row for 4 times then each time I get the same row

my code

hello @aattuull
remove that srand function from ur code and then try