Create a Python function to generate an array of random numbers that follows a binomial distribution.
n = 100 
p = 0.5
import numpy as np

def binomial(n, p):
  return np.random.binomial(n, p)

dist = binomial(n, p)