Random frame loading

In the file attached I have a script that loads random frames on the first frame. After it went through all of the frames i want it to stop on frame 2 which is not one of the frames that its going through. Also the begin button is not getting removed after i press it. So here are the 2 things i need:

  1. Remove the begin button after its pressed on each frame

  2. The animation to stop on frame 2 after its finished.