Pages: 1 [2]   Go Down
Author Topic: Random() Maximum  (Read 1831 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
shrz
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
shrz
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged

Pages: 1 [2]   Go Up
Jump to: