#using numpy's randint
df = pd.DataFrame(np.random.randint(0,100,size=(15, 4)), columns=list('ABCD'))
"In this quick guide, we're going to create a Pandas DataFrame of random integers with arbitrary length."
import numpy as np
import pandas as pd
import string
string.ascii_lowercase
n = 5
m = 7
cols = string.ascii_lowercase[:m]
df = pd.DataFrame(np.random.randint(0, n,size=(n , m)), columns=list(cols))
df