title: How to randomize only 1 variable in a class?
body: <p>I have the following class</p>
  <pre><code>class ABC;
  
  
      rand bit[2 : 0] mode; 
      randc bit[2 : 0] mode_cylic;
      constraint range{
  
          mode &gt;= 2;
          mode &lt; 6;
  
      };
  
      constraint range_cylic{
  
          mode_cylic &gt;= 2;
          mode_cylic &lt; 6;
  
      };
  
  
  
  endclass 
  </code></pre>
  <p>I have a test object of the test class <code>ABC</code>, and I want to randomize only the <code>mode</code> variable in that object.  How can I do that?</p>