function y = tom(x)
% TOM - returns the max of x iid random normal variables.
%
% y = tom(x).  x should be a positive integer.
%
% 3/27/13

if x<1
  error('x is negative!')
end
z = randn(x,1);
y = max(z);
