Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> How To Get The Random.h Header
demolaynyc
post Dec 9 2006, 05:21 AM
Post #1


Premium Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
tansqrx
post Dec 9 2006, 05:56 AM
Post #2


Super Member
Group Icon

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
Go to the top of the page
 
+Quote Post
yordan
post Dec 12 2006, 02:49 PM
Post #3


Way Out Of Control - You need a life :)
Group Icon

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
Go to the top of the page
 
+Quote Post
sones77
post Mar 25 2007, 04:40 PM
Post #4


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 1
Joined: 25-March 07
Member No.: 21,074



QUOTE(yordan @ Dec 12 2006, 04:49 PM) *

with that random.h file I can generate numbers? ints?
Go to the top of the page
 
+Quote Post
yordan
post Mar 25 2007, 05:35 PM
Post #5


Way Out Of Control - You need a life :)
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Bad_pool_header(8)
  2. Php Random Selector(2)
  3. Using Blogger To Add Content(9)
  4. Vertical Text In Datagridview Column Header(6)
  5. Php Location Header No Send Session Id ?(0)
  6. Blingo Search Engine(3)
  7. Random With Functions?(4)
  8. Random Images On Eacht Pageload And Refresh.(6)
  9. Coppermine Random Image Script(6)
  10. Visual Basic: Random Strings!(10)
  11. Smf Theme Creation Help(13)
  12. "Sighandler_t Typedef" Header(1)
  13. Tutorial: Build Pure CSS Using Online Tools - Part 1(6)
  14. Help: Removing A Specific Header With cURL(0)
  15. Random Name Generator(2)
  1. PHP-Nuke Header Question(2)
  2. Google Image Labeler(11)
  3. Script For Viewing A Random Image Needed(3)
  4. How To Embed Ram File Produced By Http Header(2)
  5. Need Help With PHP -> HTML Header(5)
  6. Rather Random Question(2)
  7. Lesson #3 - Basic Math Operators And Random #s(0)
  8. A New Blend - Fansite Header Of The Band East 146(5)
  9. Question About Embedding Flash Object Header(2)
  10. A Few Random Thoughts..(0)
  11. Php: Write Random Text As Image(3)
  12. Random MySQL Entry(1)
  13. Random Chuck Norris Facts(2)
  14. Pre-installed Cgi(0)
  15. Photoshop Tutorial: Abstract Background I(1)


 



- Lo-Fi Version Time is now: 13th October 2008 - 07:06 PM