from random import randint
arr = [1, 2, 3, 3, 0, 55]
index = []
for i in range(len(arr)):
n = randint(0, len(arr))
while n == i or n in index:
n = randint(0, len(arr))
index.append(n)
print(index)
ZnJvbSByYW5kb20gaW1wb3J0IHJhbmRpbnQKCmFyciA9IFsxLCAyLCAzLCAzLCAwLCA1NV0KaW5kZXggPSBbXQpmb3IgaSBpbiByYW5nZShsZW4oYXJyKSk6CiAgICBuID0gcmFuZGludCgwLCBsZW4oYXJyKSkKICAgIHdoaWxlIG4gPT0gaSBvciBuIGluIGluZGV4OgogICAgICAgIG4gPSByYW5kaW50KDAsIGxlbihhcnIpKQogICAgaW5kZXguYXBwZW5kKG4pCnByaW50KGluZGV4KQ==