Hi,
I was in the process of creating some code in the Z-Uno to simulate a candel, suprisingly I could not find any Random() function as in Arduino, this makes it quite complicated to do a simulation.
I would like to do this in the Z-Uno because in the Z-Uno I can define some "multi level switches" to play with the parameter for the simulation.
Can I expect a Random() function to be implemented in Z-Uno or is there a library I can use?
/Mats
No Random() function in Z-Uno?
Re: No Random() function in Z-Uno?
We can add it in next releases (2.0.10). We even have the radio noise to seed it.
Re: No Random() function in Z-Uno?
Any news about this ?
Thanks!
Michael
Thanks!
Michael
Re: No Random() function in Z-Uno?
A year later to the exact day!
Re: No Random() function in Z-Uno?
rand() is here since last summer, but we forgot to document it
Re: No Random() function in Z-Uno?
Here is an example:
Code: Select all
void setup() {
Serial.begin();
}
void loop() {
Serial.println(rand()%100);
delay(1000);
}
Re: No Random() function in Z-Uno?
Any chance of coming back to this and documenting it?