C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-04-2009, 08:45 PM   #1
Registered User
 
Join Date: Sep 2009
Posts: 18
rand()

Are there any good tutorials on usig lrand48() and srand48() or any one that could explain it? I just wrote a quick program tat gave the value of RAND_MAX.

Code:
#include <stdio.h>
#include <stdlib.h>

main(void)
{
     printf("RAND_MAX = %d\n, RAND_MAX);
}
Now I have to use lrand48() and srand48() and I am lost again. Sorry I am extremely new to linux and C. Thanks!
ke121885 is offline   Reply With Quote
Old 10-05-2009, 06:59 AM   #2
Registered User
 
Join Date: Jul 2007
Posts: 44
man lrand48
fronty is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rand() implementation habert79 C Programming 4 02-07-2009 01:18 PM
Wm_timer Ducky Windows Programming 21 09-26-2008 05:36 AM
Issue w/ Guess My Number Program mkylman C++ Programming 5 08-23-2007 01:31 AM
rand() to choose? wagman C++ Programming 2 03-27-2002 01:43 AM
rand () a little confusion Led Zeppelin C Programming 3 03-19-2002 10:13 PM


All times are GMT -6. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22