Hi, I need help with a simple problem. I'm still new to c++ but this should be fairly straightforward. I just need to generate a random number, but with only a very small range like ... 0.00001 to 0.001. Any help would be appreciated. Thanks.
gth759k
0
Newbie Poster
Recommended Answers
Jump to PostIn line 13 you mustn't add lowest and index variable should be integer (you could get some nasty rounding errors, maybe not in this example, but also it will be faster). This is not so important, but random_integer is bad variable name. You can also look into
All 2 Replies
Reply to this topic
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.