Sponsored Content
Full Discussion: Unix concepts help
Top Forums UNIX for Dummies Questions & Answers Unix concepts help Post 302640957 by gary_w on Tuesday 15th of May 2012 01:13:13 PM
Old 05-15-2012
This User Gave Thanks to gary_w For This Post:
 

6 More Discussions You Might Find Interesting

1. AIX

Confused with File System Concepts

Hello, I've been reading the AIX 5.1 System Concepts PDF but I'm still confused about some file-system concepts and their relationships. What is the 'allocation group size'? How are 'disk allocation unit'/'fragment size', NBPI and 'allocation group size'? And how are the above three... (2 Replies)
Discussion started by: quickfirststep
2 Replies

2. Linux

Help regarding understanding of i18N and L10N concepts

Hi everyone, I would like to have good understanding of i18N & L10N implementations in Linux. What does it mean actually,interms of software development? Where it is used and how it is used? It would be more helpful to me, if anyone send me the links to "basics of i18N... (0 Replies)
Discussion started by: Aeon
0 Replies

3. Programming

Performance engineering concepts

Hello, I would like get idea about performance enginering from basic to advanced level. Do anyone know a place where i can find some videos related to performance engineering ? (5 Replies)
Discussion started by: shafi2all
5 Replies

4. Solaris

RAID concepts.

can anyone explain me the RAID concepts clearly. I studied some book bt i didnt get any clear idea. (4 Replies)
Discussion started by: rogerben
4 Replies

5. Programming

Hash tables concepts

How hash tables are used to quickly locate a data record? (4 Replies)
Discussion started by: rupeshkp728
4 Replies

6. Linux

Linux Operating system concepts

hi guys, i got job recently in a company which provide a product for data backup and data recovery... as dis product is wrriten in c++ am workin in c++.. now am under training and i want to learn abt Operating System concepts and OS programming using c and c++. i know basic c and c++ programming... (3 Replies)
Discussion started by: senthil.march
3 Replies
RAND(3) 						     Linux Programmer's Manual							   RAND(3)

NAME
rand, srand - random number generator. SYNOPSIS
#include <stdlib.h> int rand(void); void srand(unsigned int seed); DESCRIPTION
The rand() function returns a pseudo-random integer between 0 and RAND_MAX. The srand() function sets its argument as the seed for a new sequence of pseudo-random integers to be returned by rand(). These sequences are repeatable by calling srand() with the same seed value. If no seed value is provided, the rand() function is automatically seeded with a value of 1. RETURN VALUE
The rand() function returns a value between 0 and RAND_MAX. The srand() returns no value. NOTES
The versions of rand() and srand() in the Linux C Library use the same random number generator as random() and srandom(), so the lower- order bits should be as random as the higher-order bits. However, on older rand() implementations, the lower-order bits are much less ran- dom than the higher-order bits. In 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, 1992 (2nd ed., p. 277)), the following comments are made: "If you want to generate a random integer between 1 and 10, you should always do it by using high-order bits, as in j=1+(int) (10.0*rand()/(RAND_MAX+1.0)); and never by anything resembling j=1+(rand() % 10); (which uses lower-order bits)." Random-number generation is a complex topic. The Numerical Recipes in C book (see reference above) provides an excellent discussion of practical random-number generation issues in Chapter 7 (Random Numbers). For a more theoretical discussion which also covers many practical issues in depth, please see Chapter 3 (Random Numbers) in Donald E. Knuth's The Art of Computer Programming, volume 2 (Seminumerical Algorithms), 2nd ed.; Reading, Massachusetts: Addison-Wesley Publishing Company, 1981. CONFORMING TO
SVID 3, BSD 4.3, ISO 9899 SEE ALSO
random(3), srandom(3), initstate(3), setstate(3) GNU
1995-05-18 RAND(3)
All times are GMT -4. The time now is 02:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy