I know that if I use randn
,
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(100, 4), columns=list('ABCD'))
gives me what I am looking for, but with elements from a normal distribution. But what if I just wanted random integers?
randint
works by providing a range, but not an array like randn
does. So how do I do this with random integers between some range?