home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: printf Chapter 11
The Awk Scripting Language
Next: Reference: return
 

rand



rand()

Generate a random number between 0 and 1. This function returns the same number each time the script is executed, unless the random number generator is seeded using the srand() function. {N}


Previous: Reference: printf UNIX in a Nutshell: System V Edition Next: Reference: return
Reference: printf Book Index Reference: return

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System