function j = rand_int ( i )

%*****************************************************************************80
%
%% RANDINT returns a random integer between 1 and I.
%
  j = ceil ( i * rand ( ) );

  return
end
