public Object nextFloat ( DapType basetype ) throws DapException { TypeSort atomtype = basetype . getTypeSort ( ) ; switch ( atomtype ) { case Float32 : return new float [ ] { random . nextFloat ( ) } ; case Float64 : return new double [ ] { random . nextDouble ( ) } ; default : break ; } throw new DapException ( "Unexpected type: " + basetype ) ; }
return a float type value