function cgn_set ( g )

%*****************************************************************************80
%
%% cgn_set() sets the current generator index.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 March 2013
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer G, the current generator index.
%    1 <= G <= 32.
%
  i = +1;
  g = cgn_memory ( i, g );

  return
end
