Your code show a complete misunderstanding of dataflow. For example, the lower left big while loop has no purpose that I can see. Most code segments are so convoluted, it is difficult to tell what their purpose is.
There is no reason in the world to update a numeric via a "Numtext.text" property. Just use the "value" property and wire the random number directly to it. For good measure, you might want to defer panel updates during running of these small FOR loops.
I would also remove the timeout in the event loop and add a loop for the stop button instead. Overall, I would suggest to rethink the entire program. There simply has to be a better way. 😉
Ravens, these constructs with the inner loops originate from the old state diagram toolkit if I remember right. So these are canned things from NI.
We discussed that special node in the past, 'don't remember the details. 😉