KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a straightforward way to RETURN a shuffled array in Python rather than shuffling it in place? e.g., instead of x = [array] random.shuffle(x) I'm looking for something like y = shuffle(x) which maintains x. Note, I am not looking for a function, not something like: x=[array] y=x random.shuffle(x)
Tags (comma-separated)
Save Edits
Cancel