Function | Header File | Page | Description |
---|---|---|---|
rand(), rand_r() | stdlib.h | "rand(), rand_r() -- Generate Random Number" | Returns a pseudorandom integer. (rand_r() is the restartable version of rand().) |
srand() | stdlib.h | "srand() -- Set Seed for rand() Function" | Sets the starting point for pseudorandom numbers. |
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.