Code:
#!/usr/bin/env python3
import random
myArray = []
for n in range(0,10):
myArray.append(random.randint(1,100))
urArray = myArray.copy()
myArray[-1] = -7
print("1st Array: "+str(myArray)+"\n"+"2nd Array: "+str(urArray))
Result Wrote:$ ./test.py
1st Array: [32, 67, 97, 67, 5, 23, 53, 33, 4, -7]
2nd Array: [32, 67, 97, 67, 5, 23, 53, 33, 4, 63]