private int[] defineNumeric(Random random){
  int[] num=new int[getNumAttributes()];
  for (int i=0; i < num.length; i++) {
    num[i]=Attribute.NOMINAL;
  }
  int numNum=0;
  for (int i=0; (numNum < getNumNumeric()) && (i < getNumAttributes() * 5); i++) {
    int maybeNext=(int)(random.nextDouble() * num.length);
    if (num[maybeNext] != Attribute.NUMERIC) {
      num[maybeNext]=Attribute.NUMERIC;
      numNum++;
    }
  }
  return num;
}

private int [ ] defineNumeric ( Random random ) { int [ ] num = new int [ getNumAttributes ( ) ] ; for ( int i = 0 ; i < num . length ; i ++ ) { num [ i ] = Attribute . NOMINAL ; } int numNum = 0 ; for ( int i = 0 ; ( numNum < getNumNumeric ( ) ) && ( i < getNumAttributes ( ) * 5 ) ; i ++ ) { int maybeNext = ( int ) ( random . nextDouble ( ) * num . length ) ; if ( num [ maybeNext ] != Attribute . NUMERIC ) { num [ maybeNext ] = Attribute . NUMERIC ; numNum ++ ; } } return num ; }
chooses randomly the attributes that get datatyp numeric .
