title: what does "an object reference is required for the non-static field, method, or property 'Random.Next(int, int)' mean?
body: <p>The problem I'm having is that Visual studio is throwing an error under the code "Random.Next(1,10);" that says: </p>
  
  <blockquote>
    <p>"an object reference is required for the non-static field, method, or
    property 'Random.Next(int, int)' "</p>
  </blockquote>
  
  <p>So, I looked at answers to other questions with similar phrases. In these examples on Stack Overflow most suggestions said that someone needed to simply make the method or class static. I tried all combinations of this in this code and it did not fix the error in Visual Studio.</p>
  
  <p>Any help is appreciated, Thanks.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  
  namespace Data_Collector_Course_Assignment
  {
      public class Device
      {
          // Returns a randoom integer between 1 and 10 as a measurement of an 
             imaginary object
  
          public int GetMeasurement()
          {
              int randomInt = Random.Next(1,10);
              return randomInt;
          }
      }
  }
  </code></pre>