Added arrayAdd and randFun2