<prompt> Andika kazi ambayo randomly shuffles vipengele vya safu.  <response>: Heres one way you could write a function in Python to randomly shuffle the elements of an array using the Fisher-Yates shuffle algorithm:pythonimport randomdef shuffle_arrayarray: Get the length of the array n lenarray Iterate from the last element to the first for i in rangen-1, 0, -1: Pick a random index from 0 to i j random.randint0, i Swap the element at i with the element at j arrayi, arrayj arrayj, arrayi Example usage:my_array 1, 2, 3, 4, 5shuffle_arraymy_arrayprintmy_arrayThis function uses the Fisher-Yates shuffle algorithm also known as the Knuth shuffle to randomly shuffle the elements of the array. The idea behind the algorithm is to iterate through the array from the last element to the first, and for each element, pick a random index from 0 to the current index, then swap the element at the current index with the element at the selected random index.This ensures that each possible permutation of the array has an equal chance of being produced by randomly shuffling the elements. 