|
I'm having a problem with the random() function in BrickOS. I keep getting a
return value of zero.
Is there something that needs to be set-up before using the function?
What kind of value does it return? I've seen documentation that says it returns
a value between MIN_INT and MAX_INT, and another that says place it says it
returns a number up to RAND_MAX.
I'm just using a function like:
int column;
column = random();
Thanks
Steve
|
|
Message has 2 Replies:
3 Messages in This Thread: ![You are here](/news/here.gif) ![](/news/246.gif) ![Re: random problems... -Bapt Denaeyer (29-Dec-03 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: random problems... -Steve Hassenplug (30-Dec-03 to lugnet.robotics.rcx.legos)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|