a) To generate the random sequence in a range
b) To generate a sequence in a given range and arrange them in random order
c) To rearrange given sequence randomly
d) To select any random number from the given sequence.
1 thought on “What is the use of random_shuffle() function of STL algorithm?”
Leave a Comment
You must be logged in to post a comment.
c
Explanation: random_shuffle() function is used to re-arrange a given sequence of elements in a range.