Wandering square using random numbers