Applied Systems workflow tools may need to randomize a standard deck of 52 cards for simulations or randomized testing. Implement a function that shuffles a list in place so every permutation is equally likely.
Use the Fisher-Yates algorithm. The function receives a list of distinct card identifiers and an integer seed for reproducible evaluation. It must return the same list object after shuffling.
deck, a list of distinct values representing cards, and seed, an integer used to initialize a local pseudorandom generator.deck list, containing exactly the original values in a randomized order.def shuffle_deck(deck, seed):