function dna = dna_random ( rectangle_num )

%*****************************************************************************80
%
%% DNA_RANDOM creates a random set of DNA.
%
%  Discussion:
%
%   The DNA is subdivided into RECTANGLE_NUM separate "chromosomes", each of 
%   which represents on rectangle.
%
%   For each rectangle, we have 7 "genes", which represent the (x,y) of 
%   corner 1, (x,y) of corner 2, and the R, G, and B values for the rectangle.
%
%   Each gene, in turn is represented by 8 bits, because each gene is
%   an integer between 0 and 255.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    08 December 2017
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Nick Berry,
%    A "Practical" Use for Genetic Programming,
%    http://www.datagenetics.com/blog.html
%
%  Parameters:
%
%    Input, integer RECTANGLE_NUM, the number of rectangles.
%
%    Output, integer DNA(56,RECTANGLE_NUM), the 8 bits of the 7 "genes" of the
%    "chromosomes" of the DNA.
%
  dna = randi ( [ 0, 1 ], 56, rectangle_num );

  return
end
