title: Unknown class 'name'
body: <p>I am new to Android Studio and trying to get used to it. I have tried to make a trivial app where the user could press a button and a random number would be generated. However, when I used the variables in the code it gave me "unknown class 'get'" and "unknown class 'random'" errors. Code is as follows: </p>
  
  <pre><code>package com.example.myapplication;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.widget.Button;
  import android.widget.SeekBar;
  import android.widget.TextView;
  
  import java.util.Random;
  
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          final Button RollButton = findViewById(id.RollButton);
          final TextView resultsTextView = findViewById(id.ResultsTV);
          final SeekBar seekBar = findViewById(id.seekBar);
  
          RollButton.setOnClickListener(new onClickListener()
          {
              Random rnd = new Random(10);
              private int random = rnd.nextInt(seekBar.getProgress());
              CharSequence get = resultsTextView.getText();
              get = String.valueOf(random);
          });
      }
  }
  </code></pre>