private ArrayList<Cluster> defineClustersRANDOM(Random random) throws Exception {
  ArrayList<Cluster> clusters=new ArrayList<Cluster>(m_NumClusters);
  double diffInstNum=m_MaxInstNum - m_MinInstNum;
  double minInstNum=m_MinInstNum;
  double diffRadius=m_MaxRadius - m_MinRadius;
  Cluster cluster;
  for (int i=0; i < m_NumClusters; i++) {
    int instNum=(int)(random.nextDouble() * diffInstNum + minInstNum);
    double radius=(random.nextDouble() * diffRadius) + m_MinRadius;
    cluster=new Cluster(instNum,radius,random);
    clusters.add(cluster);
  }
  return clusters;
}

private ArrayList < Cluster > defineClustersRANDOM ( Random random ) throws Exception { ArrayList < Cluster > clusters = new ArrayList < Cluster > ( m_NumClusters ) ; double diffInstNum = m_MaxInstNum - m_MinInstNum ; double minInstNum = m_MinInstNum ; double diffRadius = m_MaxRadius - m_MinRadius ; Cluster cluster ; for ( int i = 0 ; i < m_NumClusters ; i ++ ) { int instNum = ( int ) ( random . nextDouble ( ) * diffInstNum + minInstNum ) ; double radius = ( random . nextDouble ( ) * diffRadius ) + m_MinRadius ; cluster = new Cluster ( instNum , radius , random ) ; clusters . add ( cluster ) ; } return clusters ; }
defines the clusters if pattern is random
