Question on the random8(x,y) function because it seems as though it never wants to

Question on the random8(x,y) function because it seems as though it never wants to give the upper limit value.

I am using it like so
int i = random8(1,NUM_STRIPS);

After letting the board run for 15 minutes the max number was never reached. My work around for now is doing NUM_STRIPS+1. I get that random numbers with computers are actually really hard to achieve but I figured i’d see that upper limit be reached at least once within those 15 minutes.

Are you utilizing the randomSeed() on an open analog port to help with RNG?
I actually use 2 on my simon door…probably overkill…
randomSeed(analogRead(A4) / analogRead(A5))
It’s only “pseudo-random” but at least this way I get twice the pseudo-randomness

@Jon_Bruno I am not. Mostly because I didn’t think FastLEDs built in random function needed it. I can use random8(x) and get every number just fine but in the case of random8(x,y) y is never given for a result.

and the only reason why I’m not using random8(x) is because I don’t ever want 0 for a result.

In the docs it says that the random function returns a value between min and (max-1). Your workaround is how the function is used anyway.

@Chris_Holden ​ Thanks. I was looking directly at the comments in the code and not the documentation.