I have one array and it has some data. Now i want to randomly changed the positions of the strings which means, want to shuffle the strings into the array. But i don't want to change the order of the array, I want to changed only order the strings and doesn't changed the array index position.
My actual array is (
(
first,
second,
third,
fourth
),
(
One,
Two,
Three,
Four
),
(
sample,
test,
demo,
data
)
)
Expected result,
(
(
second,
fourth,
third,
first
),
(
Two,
Four,
One,
Three
),
(
test,
demo,
sample,
data
)
)
Please Help me out.
Thanks!