add rand(T) for complex types and simplify the rand array constructors