05-27-2013
Can you elaborate your requirement?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Does anyone know how to or know of a web page where I can find how to change the MTU speed in Unix registry? Any info. would be greatly appreciated.
Thanks,
Techie (2 Replies)
Discussion started by: Techie_girl
2 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I am totally new to UNIX. I am currently using converting an existing software package from MFC C++ to wxwindow which allows the software to run under Windows and UNIX. My problem is my existing software package writes to and from the registry. How is this accomplished in UNIX? ... (2 Replies)
Discussion started by: DavidCountry
2 Replies
3. UNIX for Dummies Questions & Answers
can someone please explain the sed command and its purpose and an example of its use. Also can you explain the registry thing with an example also. thanks (3 Replies)
Discussion started by: djeung
3 Replies
4. Solaris
Hi,
May seem to be an absurd question, still.
As we have registry in Windows which keeps track of what is installed and where,
what is its analogous thing in Solaris.
Is this same in all Unix flavours or different. (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies
5. UNIX for Dummies Questions & Answers
what Unix systems have for registry? windows have registry. Unix have ??? (1 Reply)
Discussion started by: cs05pp2
1 Replies
6. Shell Programming and Scripting
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies
7. AIX
Hi Folks,
Could you please help me with the command to find the Registry on AIX machine?
For ex in windows we can see a products registry using the REGEDIT....In similar do we have any command for AIX? (1 Reply)
Discussion started by: nvindraneel
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
I have a requirement where in to read the registry value of a windows NT based system from a AIX server which should be automatic. For eg. the script should connect to the Win NT system, read the registry as specified on the input and display the output on the AIX screen?
Eg. <script... (3 Replies)
Discussion started by: sathish57
3 Replies
9. Shell Programming and Scripting
Hi all,
here's my script
#!/bin/ksh
if
then
export DB_CREATE_PATH=`pwd`
fi
echo
echo "********************--Menu--*****************************"
echo "*** "
echo "*** 1. Pre-Upgrade Steps "... (3 Replies)
Discussion started by: jediwannabe
3 Replies
rand(3C) rand(3C)
NAME
rand(), rand_r(), srand() - simple random-number generator
SYNOPSIS
DESCRIPTION
uses a multiplicative, congruential, random-number generator with period 2^32 that returns successive pseudo-random numbers in the range
from 0 to 2^15-1.
can be called at any time to reset the random-number generator to a random starting point. The generator is initially seeded with a value
of 1.
returns a random number at the address pointed to by the randval parameter. The seed parameter can be set at any time to start the random-
number generator at an arbitrary point.
Note
The spectral properties of leave a great deal to be desired. provides a much better, though more elaborate, random-number generator (see
drand48(3C)).
RETURN VALUE
If seed or randval is NULL, returns 0. Otherwise, returns a psuedo-random integer.
EXAMPLES
The following:
int x, y;
srand(10);
x = rand();
y = rand();
would produce the same results as:
int x, y, s = 10;
x=rand_r(&s);
y=rand_r(&s);
WARNINGS
Users of should note that rand_r() now conforms with POSIX.1c. The old prototype of is supported for compatibility with existing DCE
applications only.
SEE ALSO
drand48(3C), random(3M), thread_safety(5), random(7).
STANDARDS CONFORMANCE
rand(3C)