added functors to randomly initialise an array with floats and booleans