10 More Discussions You Might Find Interesting
How can I choose randomly the row numbers of my file in awk? (4 Replies)
Discussion started by: Homa
2. Shell Programming and Scripting
I'm trying to create a script that will print random numbers with length of three.
Below is the expected out.
thanks (4 Replies)
Discussion started by: reignangel2003
I saw this formula to generate random number between two specified values in shell script.the following.
Give a example in book.
Generate random number between 6 and 30.like this.
But I have a... (1 Reply)
Discussion started by: luoluo
I need to generate and reuse a 5 digit random number every time my program is executed. But the following generates random numbers every time the function is called.
... (12 Replies)
Discussion started by: limmer
Im new to C, and Im having a hard time getting a random number.
In bash, I would do something similar to the following to get a random number;
SEED=`expr $seed1 * $seed2 / $seed3`
Now, in online examples... (4 Replies)
Discussion started by: trey85stang
6. Shell Programming and Scripting
How do I create a random number between 1 and 10 in kornshell? (2 Replies)
Discussion started by: dangral
I get the situation from my office but i cannot think what is happening. please give me some advise.
1. some file owner and group is changed to a very long number
2. i login as root. when i touch a file or operate on the file like chown, cp, the response is "Read-only file system".... (1 Reply)
Discussion started by: rickhlwong
8. Shell Programming and Scripting
please help me in solving this issue.
I have a shell script which consists of ten statemnts ( i mean 10 executable statments)...........and if i run that script the 10 statmenst will execute continously ............
But now my probelm is i have to write another script --> to... (0 Replies)
Discussion started by: lalitka
Hi...How can I generate random numbers between a given range ...preferably between 1 and 100...in UNIX C programming...?
I tried out functions like rand(),drand48() etc but didnt get satisfactory results...
Thanks a lot in advance.......... (1 Reply)
Discussion started by: tej.buch
How to generate a random integer with specific range(for example, from 1 to 1000)?
Also, how to convert a floating point number into a integer? (2 Replies)
Discussion started by: MacMonster