Jump to content
xisto Community
demolaynyc

How To Get The Random.h Header

Recommended Posts

Hi, I'm currently looking for a header file I really need. It's a random.h header file. Is there a way that someone can send it to me? I know there is a rand() function in stdlib.h but I prefer to use the random.h one because it's being used for my school.

Share this post


Link to post
Share on other sites

With that random.h file I can generate numbers? ints?

Have a look at the C language programming guide, looking for the syntax of the rand() function.You will probably have to get a random number between O.0 and 1.0, multiply it by 100 and look for the nearest integer.
Yordan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.