@Override
    public PrimitiveTensorFunction<NAMETYPE> toPrimitive() {
        return new Generate<>(type, ScalarFunctions.random());
    }
A tensor generator which returns a tensor of any dimension filled with random numbers between 0 and 1.

@author bratseth
vespajlib/src/main/java/com/yahoo/tensor/functions/Random.java