MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / shuffled

Function shuffled

data_structures/arrays/sudoku_solver.py:229–235  ·  view source on GitHub ↗

Return a randomly shuffled copy of the input sequence.

(seq)

Source from the content-addressed store, hash-verified

227
228
229def shuffled(seq):
230 """
231 Return a randomly shuffled copy of the input sequence.
232 """
233 seq = list(seq)
234 random.shuffle(seq)
235 return seq
236
237
238grid1 = (

Callers 1

random_puzzleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected