title: How to get random textstring from array, "loop-animation" like lottery?
body: <p>I'm building a very simple Android-app without almost any knowledge in java programming.
  The application is almost done and what the app does is that when I press a button it shows a value randomly from an string array.</p>
  
  <p>What I would like to achieve is a small "animation" where it quickly scrolls through all the values ​​in the array and then randomly stops. Almost as a "spinning wheel of text".</p>
  
  <p>I have figuered out that maybe a Timer-function is the way to go. Would be great if someone could help me out.</p>
  
  <p>This is the array with all values:</p>
  
  <pre><code>final String[] myNames = {
                  "Sax12345",
                  "Tyg12345",
                  "Djur12345",
                  "Hund12345",
                  "Trafik2019",
                  "Gruvan2019",
                  "Kaffe2019"
          };
  </code></pre>
  
  <p>And this is what happens when the button is pressed:</p>
  
  <pre><code>        genButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
  
                  Random randGen = new Random();
                  int rando = randGen.nextInt(7);
  
                  textOne.setText(myNames[rando]);
              }
          });
  </code></pre>