Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 452 Bytes

cmd_srand.wiki

File metadata and controls

27 lines (17 loc) · 452 Bytes

  1. summary srand command documentation

Table of Contents

srand

Seed the random number generator.

Synopsis

Options

|| `seed` || Random number generator seed. ||

Description

Seeds the random number generator with the passed seed. Calling srand without providing a seed will seed the generator based on the contents of /dev/urandom (if available) or else based on time() and clock() values.

Examples