Added __str__ and __repr__ methods to RandomArray class