function coin_biased_test ( )

%*****************************************************************************80
%
%% COIN_BIASED_TEST tests COIN_BIASED.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL 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;
  seed = 123456789;

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

  v = coin_biased ( n, heads, seed );

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

  return
end
