Need Help: random # from system time 
Author Message
 Need Help: random # from system time

I was wondering if there was a way to use the system time to generate random
numbers.  If so, could someone please email me with a way to do it.  I need
it to process a Monte Carlo simulation for a Graduate project.

Thanks...
 --

--------------------------------------\
                                      /\
When he dies, I'll stop collecting!!  / \---------------------\
                                      /      STEPHEN KING      \
                       Dave Taylor    /         RULES!!         \

          http://www.*-*-*.com/ ~dtaylor  /  -\   /\  /  \   /\_    |
                                      / /  \ /  \/    \ |   \   |
--------------------------------------//    V          \|    \_/



Sat, 20 Dec 1997 03:00:00 GMT  
 Need Help: random # from system time


Quote:
>I was wondering if there was a way to use the system time to generate random
>numbers.  If so, could someone please email me with a way to do it.  I need
>it to process a Monte Carlo simulation for a Graduate project.

Read the FAQ, available from rtfm.mit.edu/pub/usenet-by-group/comp.lang.c
Read your manual, available at your local bookshelf
Read your on-line help, available at your keyboard/screen

Check rand() and srand().

A graduate student should know how to look in his manual.  Even a
freshman should.

--




Sat, 20 Dec 1997 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help needed: COM in REAL-TIME systems.

2. runtime needed (getting system time?)

3. need help with random number

4. More random number help needed (long'ish)

5. Need help to fill an array with random integers

6. Still need help with this - Random Access File program

7. Random Numbers Help Needed

8. Help: Need C code for random number generators

9. Help needed with random variables

10. Minimum Wait Time (System Time Resolution)

11. icon in the taskbar notification area(where we see the system time) (Urgent Help)

12. Help setting System Time

 

 
Powered by phpBB® Forum Software