title: How can I get random numbers from the range attribute between minimum value and the current value?
body: <p>The minimum is 20 the maximum is 300.
  If in the inspector for example the current value of the slider is 120 then pick a random number between 20 and 120 and if before running the game or while the game is running I'm changing the value to 77 then the next random number should be between 20 and 77.</p>
  
  <p>I want that each X random seconds each time that the npcs will do something.
  For example after running the game if the random number is 20 or 90 then after 20 seconds or 90 seconds the npcs will do something. Then the next random number if it's 199 then after 199 seconds the npcs will do the same thing(something) and so on. </p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using System.Linq;
  using UnityEngine;
  
  public class RandomTester : MonoBehaviour
  {
      public List&lt;GameObject&gt; npcs;
      [Range(20, 300)]
      public int timeVisit = 20;
      public string nextVisitTime;
  
      // Start is called before the first frame update
      void Start()
      {
          npcs = GameObject.FindGameObjectsWithTag("Npc").ToList();
  
  
      }
  
      // Update is called once per frame
      void Update()
      {
  
      }
  }
  </code></pre>