adding 'random' extension for Array type