473,471 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

(Off C++ topic) In Unix C-shell, how do I create random number?

Sorry for the non-C++ topic, but it's most easy to get answer from here I
guess.

How do I create random numbers (integer from 0~9999) in Unix C-shell?

I am writing a script which randomly selects some files among file bank and
sent to processing.
Now the random selection part bogs me down.


Nov 21 '06 #1
3 2012
Mr. Ken wrote:
Sorry for the non-C++ topic, but it's most easy to get answer from here I
guess.
comp.unix.programmer

--
Ian Collins.
Nov 21 '06 #2
Sorry for the non-C++ topic, but it's most easy to get answer from here I
guess.

How do I create random numbers (integer from 0~9999) in Unix C-shell?
I believe that it would be even easier to get answers from
comp.unix.shell...

Don't be so lazy, and ask your favorite search engine... You'll find
zillion of answers to your problem.

Cheers,
Loic.

Nov 21 '06 #3
VJ
Mr. Ken wrote:
Sorry for the non-C++ topic, but it's most easy to get answer from here I
guess.

How do I create random numbers (integer from 0~9999) in Unix C-shell?

I am writing a script which randomly selects some files among file bank and
sent to processing.
Now the random selection part bogs me down.

The 1st page on google search gave me:
http://www.daniweb.com/techtalkforums/thread1769.html
This is a tutorial on random numbers in c++.
Nov 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Benson | last post by:
Like I said, I can't resist the temptation... Tandem practically invented the commercially useful, networked minicomputer. Up to 16 loosely-coupled processors with distributed microkernel OS...
7
by: Agent Mulder | last post by:
Hi group, I thought it might be a good idea to come up with a tagging system for off-topic posts, Borland style. So instead of the 'generic' Soundcard crashed under VC6.0 we would have
9
by: Hudson Reis | last post by:
Hi all, Test, please ignore. Hudson
19
by: golson | last post by:
I have written a C function to copy a flash write routine that is in Flash memory to RAM memory. I have then created a function that uses a Function Pointer to run the copied function in RAM. ...
1
by: Klaus Vestergaard Kragelund | last post by:
Hi there I cannot seem to get this to work. In LabWindows I want to be able to call the Sleep function. But when I #Include "Windows.h" I get errors that it cannot build: "Redeclearation of...
30
by: jimjim | last post by:
Hello, This is a simple question for you all, I guess . int main(){ double *g= new double; *g = 9; delete g; cout<< sizeof(g)<<" "<<sizeof(double)<<" "<<sizeof(*g)<<" "<<*g<<" "<<endl; *g =...
54
by: Sathyaish | last post by:
I am trying to print to the printer. I am using a VC++ 6.0 compiler on Win 2K, but I get an error saying that stdprn is not defined. Why is that? Is it because of Windows, I am guessing? Do I have...
33
by: Chris Croughton | last post by:
I notice the real reason for not posting "off-topic" here is that the result will be a long thread on whether the matter is off-topic or not -- caused by the very people who claim that they don't...
2
by: mpmel | last post by:
I am in a class at school and we are in the process of implementing an operating system using 'Nachos'. For my Login Screen, I am trying to make it so that when someone is logging in, their...
8
by: fabio | last post by:
hi everybody i have a weird problem with my project, look at this: **************************************************** Debian:/progetto/PROGETTO$ ls -al server -rwsr-xr-x 1 root faz 372731...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.