Example #1
0
    public APINumbers GetRandomNumber()
    {
        int l    = numbersList.Count();
        int rand = Random.Range(0, l);

        APINumbers n = numbersList.ElementAt <APINumbers>(rand);

        numbersList.Remove(n);
        return(n);
    }
Example #2
0
    public string GetRandomLabel()
    {
        currentNumber = apiController.GetRandomNumber();

        return(currentNumber.label);
    }