How to make something happen in random time

Hi i want to make circle that will be appearing in 10-20 secs intervals at random. what i mean is i want it to appear wait till user clicks it and then disappear wait random 10-20 seconds and then appear how to do it ?

Hello. Do you have a way to detect clicks yet? Try to find that first- here is a way to make it appear in random time.

Go to your click script. Create this:

void Update()
{
         // your click script
        // once your click is detected, add the following:
        StartCoroutine(Wait());
}
 IEnumerator Wait()
    {        
        gameObject.SetActive(false); // Set the object inactive.
        yield return new WaitForSeconds(Random.Range(10,20);
        gameObject.SetActive(true); // Set the object active.
  }

`