Generate an array with 20 random unique numbers from 1 to 100 in Python.
import random

random_numbers = []

while len(random_numbers) < 20:
    n = random.randint(1, 100)
    if n not in random_numbers:
        random_numbers.append(n)

print(random_numbers)