|
-
April 7th, 1999, 09:32 AM
#1
Rand. Numbers
In vc++ 5, how would I generate a random # bewtween ... 1 - 13 ( or any #).
I got it where it will give me random #'s but cant find a way to limit it to between 2 #'s.. The docs say to use RAND_MAX but gives no clue as to how to set it... if you know any other ways....help please.
Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|