function coin_biased_test ( )

%*****************************************************************************80
%
%% coin_biased_test() tests coin_biased().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'coin_biased_test()\n' );
  fprintf ( 1, '  coin_biased() simulates the tossing of a biased coin N times.\n' );

  n = 100;
  heads = 0.70;

  fprintf ( 1, '  HEADS has a probability of %g\n', heads );

  v = coin_biased ( n, heads );

  r8vec_print ( n, v, '  Coin toss results: -1=Tails, +1=Heads' );

  return
end
