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


rand

rand()

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


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

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