If I create a function in python that takes in an array and pops a value, will the array be permanently changed outside of the function?
ie
func popRandom(array):
array.shuffle()
return array.pop()
Will the array be permanently altered outside of the function? Because that's what I'm going for.