Go Down

Topic: Random() Maximum (Read 2428 times) previous topic - next topic

woo_oow

Hi
I'm about to try out your suggestions. I'm a bit confused, but i think i'll manage it.
Now i read about the 2's complement math, wich is used for the int values.
Do i shift as well the first bit, the one to sign the value?

greets
w

woo_oow

Hello,

now everthing is good!
i followed your path Fredrik, it worked. Thanks for that!

@mellis: did you manage fixing the bug in 0010? (I'll keep asking :)

mellis

Not yet.  Arduino 0011 will focus more on improvements to the core, so it might happen then, but no promises.  I don't think many people need such large random numbers (though maybe I'm wrong).

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy