The maximum and minimum of a random sample of numbers are called the"extrema"of the sample
Fix positive integers n and N. Suppose n draws are made at random with replacement from the numbers {1, 2, 3, . . . , N}. Let X; be the number that appears on the ith draw.
Let V, = min{X,X2,...,X,} be the sample minimum and let Wn = max{X,X2,...,X,} be the sample maximum.
We will use simulations to compute an approximation to the distribution of Wn
(a) Maximum of draws
Write a function named max_sim that takes N and n as its arguments, randomly draws n times with replacement from {1, 2, 3, . . : , N} and returns the maximum of the draws