add random function and use it for the arrows