Fix random array generation in Binary Task