SHARE
TWEET

Untitled

a guest Apr 24th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int counter = 0;       
  2. counter++; //!<  plus the counter
  3.         if (counter >= 50) //!<  if the counter is bigger or equal to 50 then do this
  4.         {
  5.             movement = generateNum(10); //!< generate a new number
  6.             counter = 0; //!<  reset the counter
  7.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top