Randomness for Dynamics and Arithmetics