Query: ns_rand
OS: debian
Section: 3aolserv
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ns_rand(3aolserver) AOLserver Built-In Commands ns_rand(3aolserver) __________________________________________________________________________________________________________________________________________________NAMEns_rand - commandsSYNOPSISns_rand ?max? _________________________________________________________________DESCRIPTIONns_rand generates a cryptographically-secure random number. If max is not specified, the random number is a floating-point value n such that 0.0 <= n < 1.0. If max is specified, it must be a positive integer between 0 and 2147483647. The return value is an integer value such that 0 <= n <= (max - 1). Internally ns_rand is implemented with the drand48(3) and lrand48(3) standard library functions. An internal random seed is generated the first time ns_rand is called after the server starts.EXAMPLESnscp> ns_rand 0.39938485692 nscp> ns_rand 10 7SEE ALSOnsd(1), info(n), drand48(3), lrand48(3)KEYWORDSAOLserver 4.0 ns_rand(3aolserver)
Related Man Pages |
---|
ns_info(3aolserv) - debian |
ns_rand(3aolserv) - debian |
ns_server(3aolserv) - debian |
ns_stats(3aolserv) - debian |
jrand48(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
How to read max of 10 file at a time? |
Calc max of a column |
Process, where each process generates a random integer |
print max number of 2 columns - awk |
Limits on 32 and 64 bit in C++ / C |