function v = coins_uniform ( m, n )

%*****************************************************************************80
%
%% coins_uniform() computes M sets of N uniformly random coin flips.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 February 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of repetitions.
%
%    integer N, the number of tosses.
%
%  Output:
%
%    integer V(M,N), a vector of -1's for tails, and 1's for heads.
%
  v = ( rand ( m, n ) < 0.5 );

  v = 2.0 * v - 1.0;

  return
end
