|
|
|
|
![]() ![]() |
Dec 9 2006, 05:21 AM
Post
#1
|
|
|
Premium Member Group: Members Posts: 330 Joined: 2-February 06 Member No.: 11,040 |
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.
|
|
|
|
Dec 9 2006, 05:56 AM
Post
#2
|
|
|
Super Member Group: [HOSTED] Posts: 533 Joined: 25-April 05 Member No.: 4,374 |
Its been awhile since I fooled with c header files but I will give it a shot. Assuming your programming department does not use a special internal random.h file, the most common appears to be this one: http://www.ks.uiuc.edu/Research/namd/doxyg..._8h-source.html
|
|
|
|
Dec 12 2006, 02:49 PM
Post
#3
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 2,045 Joined: 16-August 05 Member No.: 7,896 |
There is a random.h file here : http://www.ks.uiuc.edu/Research/namd/doxyg..._8h-source.html
also have a look here : http://www.google.fr/search?hl=fr&q=ra...oogle&meta= Regards Yordan |
|
|
|
Mar 25 2007, 04:40 PM
Post
#4
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 1 Joined: 25-March 07 Member No.: 21,074 |
There is a random.h file here : http://www.ks.uiuc.edu/Research/namd/doxyg..._8h-source.html also have a look here : http://www.google.fr/search?hl=fr&q=ra...oogle&meta= Regards Yordan with that random.h file I can generate numbers? ints? |
|
|
|
Mar 25 2007, 05:35 PM
Post
#5
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 2,045 Joined: 16-August 05 Member No.: 7,896 |
QUOTE 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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 13th October 2008 - 07:06 PM |