Error with Random.Range

    IEnumerator PlayText()
    {
        foreach (char c in story)
        {
            txt.text += c;
            yield return new WaitForSeconds(Random.Range(0.1f-0.25f));
        }
    }

Error CS1501 No overload for method ‘Range’ takes 1 arguments

It’s telling you that you’re passing in one argument. You’re passing in -0.15f. Use a comma, not minus.

Random.Range(0.1f, 0.25f);
3 Likes