question: protected Vector < Double > makeTestValueList ( int seed , int numValues , Instances data , int attrIndex , int attrType ) throws Exception { double [ ] minMax = getMinimumMaximum ( data , attrIndex ) ; double minValue = minMax [ 0 ] ; double maxValue = minMax [ 1 ] ; double range = maxValue - minValue ; Vector < Double > values = new Vector < Double > ( numValues ) ; Random random = new Random ( seed ) ; if ( attrType == Attribute . NOMINAL ) { for ( int i = 0 ; i < numValues ; i ++ ) { Double v = new Double ( ( Math . abs ( random . nextInt ( ) ) % ( int ) range ) + ( int ) minValue ) ; values . add ( v ) ; } } if ( attrType == Attribute . NUMERIC ) { for ( int i = 0 ; i < numValues ; i ++ ) { Double v = new Double ( random . nextDouble ( ) * range + minValue ) ; values . add ( v ) ; } } return values ; }
target:  Make a simple set of values. Only one of the num'type' parameters should be larger 0. (just to make parameter similar to the makeTestDataset parameters)