What is the greatest possible range of rand()? I want to make it that of a long signed integer, but my program crashes. Is there another way to get that range?
.:Pudge:.
0
Light Poster
Recommended Answers
Jump to PostThe max of rand() is system-dependent.
Show us what you are doing, there may be a different reason for your program crash.
All 4 Replies
thelamb
163
Posting Pro in Training
.:Pudge:.
0
Light Poster
thelamb
163
Posting Pro in Training
Tellalca
19
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.