import numpy as np
# Params of choice():
sample_space = np.array(['Kron', 'Mynt'])
sample_size = 5
replace = True
prob = [1/2, 1/2]
# Generating random sample:
sample = np.random.choice(sample_space,
sample_size,
replace,
prob)
print('sample =', sample)