function frac = intell(n, k)
% computes likelihood of a 130 IQ person being the smartest in
% the room containing k people, repeats this n times, and 
% outputs the result.
A = random('norm', 100, 15, [n k]); % n x k random matrix
% The first entry to *|random|* tells Matlab to use the normal
% distribution; Type help random to see other choices.
B = sum(A > 130, 2); % counts no. of entries in each row > 130
frac = sum(B == 0)/n; % counts what fraction of row is zero