updated random nums and flow of animation