dap4/d4servlet/src/main/java/dap4/servlet/RandomValue.java
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);
    }
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);
    }
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
return a float type value