function [ y, j, f, seed ] = yjf_uniform_common ( y1, j1, f1, y2, j2, f2, seed )

%*****************************************************************************80
%
%% yjf_uniform_common() picks a random Common YJF date between two given dates.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 March 2013
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y1, J1, real F1, the first YJF date.
%
%    integer Y2, J2, real F2, the second YJF date.
%
%    integer SEED, a seed for the random number generator.
%
%  Output:
%
%    integer Y, J, real F, the random YJF date.
%
%    integer SEED, a seed for the random number generator.
%
  jed1 = yjf_to_jed_common ( y1, j1, f1 );
  jed2 = yjf_to_jed_common ( y2, j2, f2 );

  jed = jed1 + ( jed2 - jed1 ) * rand ( 1, 1 );

  [ y, j, f ] = jed_to_yjf_common ( jed );

  return
end
