How to use random function? Please Help

You will get a random answer from 25 list of answers :smiley:

No for 2 reasons

Firstly
  byte index = random(0, 24);  //get a number between 0 and 24Remember what I said earlier in the thread about the range returned by the random() function.

Secondly
The random() function returns the same series of numbers each time the program is run. You can call the randomSeed() function to help with this or, in the case of your program call the random() function each time through loop() and discard what it returns until you need it. That way the number series returned will be different each time the program is run depending on the intervals between using the random number.