function combination_lock_parfor ( )
%% combination_lock_parfor.m
%
%  Set the combination C.
%
  rng ( 'shuffle' );
  c = randi ( [ 0, 999 ], 1, 1 );
%
%  Generate every number A between 0 and 999,
%  and then see if it is the combination C.
%
  parfor a = 0 : 999

    if ( a == c )
      fprintf ( 1, '\n' );
      fprintf ( 1, '  The combination is %d!\n', a );
    end
  
  end
 
  return
end

