Make model switch animation with integer once

How do i make it so my model switches animation once. With an integer and i want it to be random how many seconds it takes.