Code changes in new API - random() for rand()?

New API looks good.

I notice that some examples won’t compile, there is an error about “rand() not declared in this scope”.

Changing rand() to random() seems to work.

Is this a known issue?

Good catch @gpvillamil, that’s right we removed rand() and replaced it with random(). Functions the same way, random is inclusive of the value shown (i.e. random(5) returns values 0,1,2,3,4, or 5)

1 Like

I missed this update, better do some updating tonight!

Note that this change is in the BIOS-Integration branch (but in all honesty, this is the only branch worth being on at the moment) it will surely make its way over to dev and then master in due time :slight_smile: