#include <stdlib.h> int rand(void); void srand(unsigned int seed);
srand() ÇÔ¼ö´Â ÀÎÀÚ¸¦ rand()°¡ ¸®ÅÏÇÏ´Â pseudo-random Á¤¼öÀÇ »õ·Î¿î ¿¬¼ÓµÈ ¼öµéÀ» À§ÇÑ Á¾ÀÚ·Î ¼³Á¤ÇÑ´Ù. ÀÌµé ¿¬¼ÓµÈ ¼öµéÀº °°Àº seed °ªÀ¸·Î srand()¸¦ È£ÃâÇÏ¿© ¹Ýº¹µÈ´Ù.
¸¸ÀÏ ¾î¶² seed °ªµµ Á¦°øµÇÁö ¾Ê´Â´Ù¸é, rand() ÇÔ¼ö´Â ÀÚµ¿ÀûÀ¸·Î 1 °ªÀ¸·Î Á¾ÀÚ°¡ µÈ´Ù.
Numerical Recipes in C: The Art of Scientific Computing (William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling; New York: Cambridge University Press, 1990 (1st ed, p. 207))¿¡, ´ÙÀ½°ú °°Àº ÁÖ¼®ÀÌ ÀÖ´Ù:
j=1+(int) (10.0*rand()/(RAND_MAX+1.0));
j=1+((int) (1000000.0*rand()) % 10);
Random-number »ý¼ºÀº ¸Å¿ì º¹ÀâÇÑ ÁÖÁ¦ÀÌ´Ù. Numerical Recipes in C Ã¥(À§¿¡ ¾ð±ÞÇÑ)Àº Chapter 7 (Random Numbers)¿¡¼ random-number »ý¼º¿¡ °üÇÑ ½ÇÁ¦ÀûÀÎ ÈǸ¢ÇÑ Åä·ÐÀ» Á¦°øÇÑ´Ù.
´õ ÀÌ·ÐÀûÀÎ Åä·ÐÀ» ¿øÇϸé, ±íÀÌ ÀÖ°Ô ¸¹Àº ½ÇÁ¦ÀûÀÎ À̽´¸¦ ´Ù·ç°í ÀÖ´Â Donald E. KnuthÀÇ The Art of Computer Programming, volume 2 (Seminumerical Algorithms), 2nd ÆÇÀÇ Chapter 3 (Random Numbers)¸¦ Âü°íÇضó.; Reading, Massachusetts: Addison-Wesley Publishing Company, 1981.