KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Before I ask my question, let me get this straight... This is not a duplicate of Does anyone know a way to scramble the elements in a list? and Shuffle an array with python, randomize array item order with python . I'll explain why... I want to know how to scramble an array, and make a new copy . Because random.shuffle() modifies the list in place (and returns None ), I want to know if there is another way to do this so I can do scrambled=scramblearray() . If there isn't a built-in function, I could define a function to do this if possible.
Tags (comma-separated)
Save Edits
Cancel