If the motive is only finding random pivot number why cant we simply use rand() function instead of using srand() before the rand() function?
Srand() function
Is it because even with rand() function the randomised array could be same as the original one?
yes,whenever u run the program it will give same set of values if u have not used srand();
hey, @rohanmd07 if still you have doubts let me know else can you please mark this doubt as resolved, thnkyou
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.