Over 1 million tech questions and answers.

Adding random syntax in front of numbers automatically?

Q: Adding random syntax in front of numbers automatically?

Hey!

I don't know it it's appropriate subforum to ask it, but as i'm under Windows 7 i thought it might've been a right place to start with.

Technically what i mean is i've got a row of numbers in notepad, like:

555555
543434
645454
454545
etc

What i'd like to do is automatically put a syntax in front of these numbers, like:

thisdoesthat?id=555555
thisdoesthat?id=543434
thisdoesthat?id=645454
thisdoesthat?id=454545
etc

I've got tens of thousands of such numbers, thats why it has to be done automatically.

Can you do it somehow with CMD perhaps? Or do you need any external program. If so, which one?

Thanks!

RELEVANCY SCORE 200
Preferred Solution: Adding random syntax in front of numbers automatically?

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Adding random syntax in front of numbers automatically?

Read other 11 answers
RELEVANCY SCORE 64.4

I don't know how to use Excel very much. It is way above my head but I need to calculate the frequency of a column of numbers in a range of cells. I have tried everything I can based on the instruction books and online helps. But it always comes back wanting a name for the range of cells. I have tried
giving it a name but nothing works.
It appears to me that the mode feature is what I need to get the numbers I need. But I have tried: =mode:(B4:G85)
and it comes back with #name?.   Tried to name it with no success.  Tried =mode:multi(B4:G85)  still comes back with #name?.
I tried doing a formula for each column of cells =mode(B4:B85) and still no luck.
What the heck do I have to do to find out the highest number used most often and subsequent numbers down the cell?
I have a range of cells from B4-G4 that is 85 lines down.
Can somebody help out this poor old lady that is going nuts trying to figure this out?
 
Thank you, thank you thank you

A:what is syntax to find frequency of numbers in range of cells?

https://support.office.com/en-us/article/FREQUENCY-function-44e3be2b-eca0-42cd-a3f7-fd9ea898fdb9
 
?
 
Or maybe http://www.exceluser.com/formulas/countifs-frequency-distributions.htm
 
?

Read other 1 answers
RELEVANCY SCORE 64.4

I don't know how to use Excel very much. It is way above my head but I need to calculate the frequency of a column of numbers in a range of cells. I have tried everything I can based on the instruction books and online helps. But it always comes back wanting a name for the range of cells. I have tried
giving it a name but nothing works.
It appears to me that the mode feature is what I need to get the numbers I need. But I have tried: =mode:(B4:G85)
and it comes back with #name?.   Tried to name it with no success.  Tried =mode:multi(B4:G85)  still comes back with #name?.
I tried doing a formula for each column of cells =mode(B4:B85) and still no luck.
What the heck do I have to do to find out the highest number used most often and subsequent numbers down the cell?
I have a range of cells from B4-G4 that is 85 lines down.
Can somebody help out this poor old lady that is going nuts trying to figure this out?
 
Thank you, thank you thank you

Read other answers
RELEVANCY SCORE 58.4

Hi all

I want to add 000 (three zeros) before the numbers in a column of my excel worksheet.How can I do it?

thanks
 

A:Inserting 000 in front of numbers in a column in excel

Read other 9 answers
RELEVANCY SCORE 57.6

Excel'03?
How do I add a number in front on a colum of numbers in one move.

I have a bunch of item numbers on a price list, about 1000.
I need to a the number 7 in front of all of them!

anyone know how to do this!

please help!!

Brion
 

A:Excel'03? how do I add a number in front on a colum of numbers in one move

Read other 15 answers
RELEVANCY SCORE 57.2

Hello Guys and Gals - hope someone out there can help?
I have noticed that my laptop is not operating up to par over the past few months - HP Pavilion g7 4 GB Memory x64 Windows 7 - bought in Jan 2012.

Periodically things don't work right - Sep'12 on I experienced Blue screen and now when turning on I quickly hit esc and it starts up fine. Sometimes programs won't download - I have also noticed at times that my AV was 'Off' and now has expired. Decided to go back to Avast and chose the 'pay' option. I managed to download it to the desktop but it won't 'Run'. Phoned Support and spoke to 3 'helpers over this afternoon. None could help. The last gal investigated further than the 2 before her.... she went to Temp Files and told me that I had 100s more than I should and that a lot were corrupt and I need to take the PC to an 'expert' to clean - not to do myself as, If I delete these Temp files I could be deleting files that are required for running programs. She also showed me 'Start/reliability history where there are a lot of red Xs and problems. She told me I will not be able to d'load Avast or probably any other program until I get the computer cleaned. Either she was trying to steer me to Avast Tech which we discussed, and is $169 per year!!! Or she was genuine. How can I resolve this dilemma ? At the moment I have no Anti Virus - !!!!

A:Is it safe to delete Temp files with long numbers in front?

  
Quote: Originally Posted by Cheeki


Hello Guys and Gals - hope someone out there can help?
I have noticed that my laptop is not operating up to par over the past few months - HP Pavilion g7 4 GB Memory x64 Windows 7 - bought in Jan 2012.

Periodically things don't work right - Sep'12 on I experienced Blue screen and now when turning on I quickly hit esc and it starts up fine. Sometimes programs won't download - I have also noticed at times that my AV was 'Off' and now has expired. Decided to go back to Avast and chose the 'pay' option. I managed to download it to the desktop but it won't 'Run'. Phoned Support and spoke to 3 'helpers over this afternoon. None could help. The last gal investigated further than the 2 before her.... she went to Temp Files and told me that I had 100s more than I should and that a lot were corrupt and I need to take the PC to an 'expert' to clean - not to do myself as, If I delete these Temp files I could be deleting files that are required for running programs. She also showed me 'Start/reliability history where there are a lot of red Xs and problems. She told me I will not be able to d'load Avast or probably any other program until I get the computer cleaned. Either she was trying to steer me to Avast Tech which we discussed, and is $169 per year!!! Or she was genuine. How can I resolve this dilemma ? At the moment I have no Anti Virus - !!!!


Do not delete temporary files that are in your TEMP folder ... Read more

Read other 7 answers
RELEVANCY SCORE 56

Please can you tell me how to add page numbers to documents in Libre Office Writer.

Thanks
 

Read other answers
RELEVANCY SCORE 56

Not as easy at it sounds!

I have a cell with the following:

C16W45Y108

I need excel to calculate the total of these figures e.g =
16
45
108

this should give me a total of 169.

These figures are random e.g.
Y189
F2C77W10Y177

in each of these i would like the totals to be show eg:
Y189 - is 189
F2C77W10Y177 - is 266

Im stuck....

Read other answers
RELEVANCY SCORE 56

Could somebody help me . I need to print a Word file, but every print has to be numbered. There surely must be some way of doing it automatically. HELP
 

A:Adding Numbers to a Printout

print out of what in what program
adding what type of numbers

assuming word
assuming page numbers
assuming XP

on the top menu
Insert
page numbers
 

Read other 3 answers
RELEVANCY SCORE 56

I have a company that sends people out into the field, the job may take more than one day and they may sell the same and different items each day. I am looking for an easy way to total these things up. I know Excel pretty well, but I can't figure out macros. What I would like to do is;be able to input Item #'s, have it look up the Description (which I know how to do), then I enter amount used, then on the side somewhere have it "auto sort" and "auto total" in either format as shown in Option #1 or #2 (I would really like it to show Option #2 & 1) Then I can review it with each item listed in order and give it to my secretary to enter into my invoicing program.

Item # Description Amount used
101 Truck 1
102 Pencils 6
205 Paper 8
215 Eraser 4
318 Envelope 10
101 Truck 3
319 Paper Clip 2
102 Pencils 5
318 Envelope 8
101 Truck 5
217 Ink 2
319 Paper Clip 8
205 Paper 2
215 Eraser 4


Option #1
Item # Description Total Used
101 Truck 9
102 Pencils 11
205 Paper 10
215 Eraser 8
217 Ink 2
318 Envelope 18
319 Paper Clip 10
Option #2
Item # Description Total Used
101 Truck 1
101 Truck 3
101 Truck 5 9
102 Pencils 6
102 Pencils 5 11
205 Paper 8
205 Paper 2 10
215 Eraser 4
215 Eraser 4 8
217 Ink 2 2
318 Envelope 8
318 Envelope 10 18
319 Paper Clip 2
319 Paper Clip 8 10
 

A:Adding numbers from jobsheets

Read other 10 answers
RELEVANCY SCORE 56

I need an Excel formula that will add a column of numbers by the date in which they (each number) occurred. The dates and numbers in sequence (which helps). For example, to add all of the monthly payments (by month) that will occur between 10/1/04 and 10/1/05 (in this case one payment per month) what could I use as a formula?

Help would be appreciated as Hurricane Francis blows right over my head here in Orlando.
 

A:Adding numbers between know dates

Here ya go: http://www.dicks-blog.com/excel/2004/03/sumif_between_t.html
 

Read other 1 answers
RELEVANCY SCORE 55.2

Hi All,

Anyone know how to add and total up numbers in a table cell? Thanks.

npd
 

A:Adding and Total Up Numbers in a Table

Read other 6 answers
RELEVANCY SCORE 55.2

I have a new 11e laptop, 3rd Generation. Everything was working good. All of a sudden, the keyboard when typing only the middle row letters of "a,s,d,f, j, k, l, ;" a number will be added in front or to the back of the letter. All other keys are typing fine. I have checked for anything NumLock that could be related to causing this. Nothing in BIOS Set. Checked keyboard settings - the correct language is set. I tried to press FN+F11 and nothing. I turned on the online keyboard and clicked on NumLock there and turned it off, that did not fix it. I attached an external keyboard, that types fine. Turned on and off num lock, that did not fix it. I did a restore back to a date before it happened, that did not fix it. I just reimaged the laptop and that did not fix it. Any suggestions would be much appreciated!

Read other answers
RELEVANCY SCORE 55.2

Hello,

I am having trouble with Excel 2003 automatically adding the last digit in a Postal Code. For example, when I type in "R3R 4K5" in A1 and then click the corner of it and drag it down a couple of cells it goes from "R3R 4K5" to "R3R 4K6" and "R3R 4K7" and so on.

Is there an option that you can disable to prevent this?

Thanks!
 

A:Solved: Excel adding numbers

Read other 10 answers
RELEVANCY SCORE 55.2

Is there some way to make it so page numbers display on the printed pages of an Adobe .pdf file? I converted a Word document to .pdf, but the Word document did not have the numbered pages. I now want to add the numbers in Adobe Reader, but it looks like I'll have to go back to the original Word document, add headers which include the page number, and then re-convert it to .pdf. Is that correct? If I could do it within Adobe Reader, that would be preferable.
 

A:Adding Page Numbers to .PDF document

The file is a creation from an original Word file, the page numbers would need to exist in the Word file.

It would be a nightmare if in creating a PDF it was able to assign new printed page numbers as these would often not align with the original document and TOC's would be incorrect.
 

Read other 1 answers
RELEVANCY SCORE 55.2

Im using windows 10 totally updated version and the problem im facing is that windows keeps adding numbers after my WiFi name/SSID and the number keeps on increasing. It aint causing any trouble with network usage but I still wanna fix it and wanna know whats causing this. Ive attached a picture with this thread where u can see the wifi name states Redmi 7 but my network name is just Redmi. This 7 was 2,3,4... some days ago. Please help me asap with this issue ill be grateful.
 

A:Windows keeps adding numbers after my WiFi name

I don't understand why that is a "problem" or why you are bothered, but I don't need to understand. In Network Connections you can right click on the connection name and select Rename and call it whatever you wish (within reason). I should add that you could do this in previous versions of Windows but I'm only assuming the ability has not been removed in Windows 10.
 

Read other 1 answers
RELEVANCY SCORE 54.8

About a year ago, I created an input form that contains a subform in which are listed all the contributions of a member of the organization. Under the subform -- IN THE MAIN FORM, not within the subform -- I had placed a field that summed the contributions for that individual, and another field that displayed the domain sum (DSum) for all contributions. Both have worked perfectly every since.

The field that sums the contributions for the individual used the formula "=[Contributions subform].[Form]![ContribSum]". The field that does the domain sum is "=DSum("Contribution","Contributions")+IIf(DSum("MatchAmt","Contributions") Is Not Null,DSum("MatchAmt","Contributions"),0). I removed the field "MatchAmt" from the table, and changed the DSum statement to just "DSum ("Contribution","Contributions").

After doing that, both field yield only "#Error". Part of my puzzlement is the field "ContribSum". It is not a field in either table, and is nowhere in either form. I haven't the foggiest where it is or why the formula refers to it. I tried using just "=Sum([Contributions.subform].Form![Contribution]), but that for some reason reports only the first contribution; doesn't add all of them up.

So my question is, how does one sum number fields in a subform in a field OUTSIDE of the subform/in the host form?

Help!
 

A:Adding numbers in a subform (Access 2000)

Put the "=" back in front of DSum, so that it says this:

Code:
=DSum("Contribution","Contributions")
The "#Error" means that Access is trying to do some sort of operation that it can't pull off.

As for your sum question, it's cagey, unless you can program a little. The workaround is this:
In the subform, show the form footer. There should be a control there called ContribSub, I'm guessing, from your post. If not, make one.
Set its control source to

Code:
=Sum([Contribution])

Once you're sure the subform sum is working, you can set the Visible property of the form footer to false. That way you don't see your total down there.
Now you can build a control source on the master form whose control source is set to

Code:
=[Contributions subform].[Form]![ContribSum]

As for why your other attempt wasn't working (the one that goes like "=Sum([Contributions.subform].Form![Contribution])"), you must remember that Access maintains only one "active" record at a time, per form or subform. So your control wasn't lying; I'll bet changing records in the subform would prove that. But it's only adding the total of the active record--this is the big difference from a report, where there are no active records.

Hope this helps. Let us know.
 

Read other 2 answers
RELEVANCY SCORE 54.4

Hi. My ideapad types number 6 automatically and non stop where i want to type. it is about 3 weeks old and it wasnt doing this last 2 weeks. now when i want to type 6 it cant type, it is not working. it works at is own time. please pleas pleas help.

Read other answers
RELEVANCY SCORE 54.4

Hi,

I am printing out these feedback forms which are being handed out to the public along with a CD my organisation is making. Nobody is replying to them, so in order to encourage people to respond, I thought I would number the sheets like a raffle, and one or two lucky people could win a prize.

What I need to do is number the handouts, eg 001, 002, 003, 004..... there would be 400 handouts, so I would like to do this automatically. I was thinking of putting the number at the bottom of the document.

Could someone tell me how to do this? The feedback forms are on MS Word 2000.
I can't find anything useful on the net, but I am sure it is a very common thing for people to do!

Peter
 

A:Printing consecutive numbers automatically on Word

Read other 8 answers
RELEVANCY SCORE 54

Hello All,

I am using batch manager in Omnipage Professional 17 to convert batch of PDF files to text files using Omnipage.

Now the problem is i want to add some indicator specifying page numbers to separate different pages of PDF files in my text file.

as an example suppose there is an PDF file with 5 pages getting converted to a single text file using Omnipage then i want to add page number in my text file to separate each page content available in PDF file pages.

I went through help docs of batch manager but do not find any configuration option to do this.

Please let me know if anyone have solution for this.

Thanks,
Piyush.
 

A:Omnipage + Adding Page Numbers to PDF File pages

Maybe this will help you http://www.a-pdf.com/number/ . It's a free utility to add page numbers to pdf files.
 

Read other 2 answers
RELEVANCY SCORE 54

hey guy's/girl's
just wanted to ask, i got 2 3'5 external slots at the front
they have the sata connection and power connection
when i put a hard drive inside it doesnt pick it up :S
been into bios and gone blank with regards what to do
and tried to do something on the computer no luck
if u could help it'll be great
Regards
Jay
p.s. computer specs/info

Acer Aspire M7711
Intel Core 2 Quad CPU Q8300 @ 2.5GHz
4GB Ram
Vista 32-Bit OS
 

A:Adding hard-drive to the front?

Read other 16 answers
RELEVANCY SCORE 54

Hey all,

I'm taking a stab at building a website with MS FrontPage (Because it was free). The majority of it is done, but I want to add a Forum, or some kind of Discussion board, how do I do that?

Thanks
 

A:MS Front Page -- Adding forum

Read other 16 answers
RELEVANCY SCORE 53.6

Hello group,

I wasn't quite sure how to word the subject line. I would like to be able to add a number to column A everyday and have the cumulative sum of column A show in column B in the adjacent cell so I can chart it. So it would look something like this:

1 1
1 2
1 3
2 5
-1 4

I think it's something to do w/the SUM function but I can't quite figure it out. Any help much appreciated.

Harold
 

A:Solved: Excel: Adding Numbers in a Column on a Daily Basis?

Read other 7 answers
RELEVANCY SCORE 53.2

Hi all,

Is it at all possible to add music (maybe a CD track) to a page in Front Page.

CC
 

A:Adding music to Front Page site

Read other 15 answers
RELEVANCY SCORE 52.8

Dates are automatically converted to numbers (only in one file). As you can see in the screenshot below, the dates are automatically converted into numbers so somewhere in the document a settings must have changed.
Before I format the cells:
After formatting (this should be the default setting)

Is it also possible to change a default setting in a pivot table?

I'd like to change the default setting "Count" to something else.

Thanks for your support

Vince
 

A:Dates are automatically converted to numbers + Change pivot default setting

You have to format that field to as a date value too, it's numeric now
 

Read other 1 answers
RELEVANCY SCORE 52

I'm on Windows 2000 using Outlook Express. I have 2 email accounts. They were both working fine for ages then suddenly they stopped sending emails. I checked the configuration and when I clicked on 'Accounts' and 'Servers' I found the pop3/ smtp lines had been changed to a list of numbers! and my user name had extra characters. For example, it changed from smtp.freeserve.com and pop.freeserve.com to 127.0.0.1 on both lines. and the user name changed from MYUSERNAME.freeserve.co.uk to [email protected]

To begin with I changed these back on both accounts and mail would send ok. However it now does it every time i open outlook express, and mail is not sending despite me correcting the settings!!
please help!!
 

A:Outlook Express - can't send email, server details automatically change to numbers!!

Read other 6 answers
RELEVANCY SCORE 50.4

When I installed a new 2.5 SATA disk in my Optiplex 5040 SFF, the front USB 2 connector with PowerShare stopped working.
When I uninstalled the disk, the front USB 2 connector with PowerShared started to work again.
Because the power supply just have one sata power-cord I used a splitter to supply the two disks with power.
According to the specifications it should be possible to use to hard disks in the Optiplex 5040 SFF.  I have just not been able to figure out how :-)
I have not been able to find a reason for this, can someplease help me :-)
/Thomas

Read other answers
RELEVANCY SCORE 50.4

I need to find a way to add a new printer to the user's system automatically when they install my program. I am able to do this in Windows XP/2k by using the shell command:

rundll32 printui.dll,PrintUIEntry /if /b "VirtualPrinter" /f ".\lj456p5.inf" /q /r "FILE:" /m "HP Laserjet 5" /z /u

I also need to be able to do this in 95/98/Me/NT, but this command is not suppored in these OSs. Does anyone know of another program or script that can be used to accomplish this same task? Thanks!
 

Read other answers
RELEVANCY SCORE 50.4

This might be easy for some of you but I just don't know.
I printed up a "word pad" and got all of these numbers. What should I do to fix it.
 
«\StK1“a‡sˆ\Ýe±fÕ{ fPn¾t7lj\«0Ëf|iò\
c
 
Actually it is a whole lot more but I could not get it to put in better.

A:random different numbers

Have you tried to restart your computer and printer? If not do so, then try and print again.

Read other 4 answers
RELEVANCY SCORE 50.4

So... I booted up my computer, logged in, and found this. (Not my picture, but this is what it looks like.)PictureI found the programs and deleted them, but they just keep coming back. I run Windows XP Home Edition. Could someone please help me?

Read other answers
RELEVANCY SCORE 50.4

Hi, first off all, apologies if im in wrong section.

Using Notepad ++ batch code I am trying to make a simple RPG. I need to simulate rolling dice to get a random number that is different each time I run it. Sometimes it will be a six sided dice, sometimes a 4 sided or more.
Can anyone help please.
 

A:Random numbers

Could you post the code you have thus far?

Aside: Is there a reason it has to be done in Batch? It's not exactly the most powerful language out there, and I fear that this won't be the last time you find yourself frustrated by its limitations.
 

Read other 5 answers
RELEVANCY SCORE 49.6

Is there a way to automatically add the contents of an audio cd to a disk using Nero Ultra 7.....instead of manually typing each track......

Thanks!!!!!!!!!!!!!
 

Read other answers
RELEVANCY SCORE 49.6

Some websites I visit automatically add URL's to my IE favorites menu. I hate this. How can I prevent this from happening. I use Windows 98 and Internet Explorer 6.0.

Natedog
 

A:IE explorer Favorites- automatically adding

Closing duplicate
 

Read other 1 answers
RELEVANCY SCORE 49.6

I opened a word document and it put out some numbers that just did not work.

Kind of like this?
\StK1?a?s?\ef{ fPnt7lj\0f|i\
c
 

A:random numbers generated

does this apply to all word documents , what about pictures on the PC ?

Its possible , you have the Crypto virus
http://www.bleepingcomputer.com/virus-removal/cryptolocker-ransomware-information

Or you may just have a corrupt word file , if its just the one file
 

Read other 1 answers
RELEVANCY SCORE 49.6

i have the following query.

Random number:Rnd([DE_fjrnldate])

the DE_fjrnldate - is a date that may or maynot be the same for different records.
now when i run the query each record has a unique number. which is exactly what i want.
however, when i rerun the query or click on the random number field the random number changes. i need to be able to run the random number and then that random number not change. right now i have to export the query into MS Excell and then import it back into MSAccess, to do further work on it. i have tried to put in a seed number ie. (55) but that results in all the records having the same random number.

any help appreciated.
 

A:Random Numbers not to change

Read other 11 answers
RELEVANCY SCORE 49.6

hi,
i have made a program that will generate a random number until the number i type is generated, but to make it faster i thought it would be helpful to stop the program going over numbers it has already generated, the problem is, i have no idea how to do this.

please help,
Thanks!

[email protected]
 

A:Programming help - random numbers

what language?

PS > do yourself a favor and remove your email address from above post, this is a public webpage.
 

Read other 12 answers
RELEVANCY SCORE 49.6

I'm currently having a problem regarding random number generating, as I can't seem to find the answer anywhere. Anyway, my problem is that I am generating random numbers from 1 to 55, however, the probability of each number being chosen is already given. I know that if you use randbetween function, that the probability of all numbers being picked out is equal (in this case, each number has 1/55 chance of being picked). My problem is that I am already assigned some probability for each number to occur (like 5% for 1, 7% for 2, 25% for 3, 2% for 4, and so on...), and the random number generation should be based on that list of probabilities given to me. How do I do that?

Please do forgive me as I am an excel newbie, and I have utterly no idea what I'm supposed to do next.
 

Read other answers
RELEVANCY SCORE 49.6

Hello,

How can I make a batch file that can create a random string of numbers and letters?

Thanks
 

A:Random numbers and letters?

Read other 9 answers
RELEVANCY SCORE 49.6

I've always thought that screen savers would display pictures randomly. And understood that could mean that the same picture could appear twice in a row. But I've watched them long enough to suspect microsoft's shuffle is not random.

Could someone point me toward a picture displayer that randomizes.
Or, ideally a picture displayer that I could adjust the parts of random (i.e., size of picture, don't use recent, don't show more than twice before the 80% is achieved) to occassionally alter the flow.

Thank You for you interest.

A:ideas on random numbers

Free version:http://flash.dvd-photo-slideshow.com/download/index.phpFree trial and then 20 buckshttp://www.cywarp.com/http://www.digitalphotoslideshow.com/history.htm

Read other 1 answers
RELEVANCY SCORE 49.6

I'm working on a C# windows app that picks a random number, then based on the guesses, will tell you if the number is higher or lower than the one the user put in it. But I can't get it to work, easy question but how to i pull the int target into the form1.cs code?

Program.cs code:

Code:
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace RandomNumberGame
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Random r = new Random();
int target = r.Next(0, 100);
Application.Run(new Form1());
}
}
}
Form1.cs Code:

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Chapter6Exercise10
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnNumber_Click(object sender, EventArgs e)
{

int x;
x = Convert.ToInt32(txtNumber.Text);
x = int.Parse(txtNumber.Text);

if (x < target)
{
this.BackColor = System.Drawing.Color.Firebrick;
... Read more

A:Solved: C# Random numbers

Read other 9 answers
RELEVANCY SCORE 49.6

Hi,

I need to perform the following query:

'update table table_name set field_name=cast(int, rand()*100+1)'

The problem is that rand() returns the same 'random' number for all fields.
Is there any way to generate efficient random numbers - and a different one for each entry to be updated?

D.
 

A:Generating random numbers in sql

it sounds like you may be calling the rand function only once and updating all the fields with the returned number.
you can try a couple of things..
1. create variables for each of the fields you want to update, define each as a separate rand function call, and update the row using the variables.
2. repeat the update statement for each field separately?

which database are you using?
 

Read other 3 answers
RELEVANCY SCORE 49.2

I am seeing new contacts in my list that I have not added. I recently installed SP2 and wonder if this has anything to do about it. It never happeded before that.

A:Windows Mail automatically adding contacts

Sorry for posting this.
I did a search and found the answer to my problem right away.
What a great forum !

Read other 1 answers
RELEVANCY SCORE 49.2

I had some users switch from outlook express to outlook so since it is easier to backup their emails by only needing 1 pst file.

But now they complain because there is no feature in outlook that automatically adds people they correspond with to their address book like it did when they were using outlook express.
From what I read it looks like that function is discontinued in all versions of outlook? But I did find some add-ins that would do it for only $15.00, is that the best way to go?

Another thing is that it seems that people with outlook 2002 have the autocomplete feature that fills in the email address when they start typing the first few characters but I have someone using outlook 2000 and I could not get the autocomplete function to work. I had "name checking" checked but not sure if that is what does it. Or do I need to upgrade outlook 2000 to 2002 to enable that function?

Any tips or suggestions appreciated.

thanks!
 

Read other answers
RELEVANCY SCORE 49.2

I am attempting to get Excel to create random numbers without repeating any already used. For example, in A1, I put in the argument "=RANDBETWEEN(1,4)" and 1,2,3, or 4 will appear in the cell. I repeat that for B1, C1, and D1. I don't know what to add to keep from getting a repeat number. Realistically, I should have any combination of 1, 2, 3, and 4 with each number appearing only once. I hope this makes sense.
 

A:How to create random numbers in excel?

Read other 9 answers
RELEVANCY SCORE 49.2

Hello Experts and Thanks in Advance,

(Full disclosure: the following question is a very very small part of a class assignment. It is one step in a journey of 1,000 miles for a beginning programmer. But if you have objections to helping with assignments, then don't reply, or please suggest other sources to find an answer. )

In the following code, I am trying to generate a Random Number between 1 and 10. But each time I run this program, the number comes out to be "2". ... I want a random number each time. How can I fix this?

Please see code below ...

// Can the Tortoise beat the Hare?

#include <cstdlib>
using namespace std;

int main()
{
int whereIsTortoise = 1;
int whereIsHare = 1;
int tortoiseMove;

cout << "The Classic Race Between the Tortoise and the Hare Begins !" << endl;
cout << "The first runner to reach Square Number 50 wins !" << endl;

cout << "The tortoise is now at square " << whereIsTortoise << endl;
cout << "The hare is now at square " << whereIsHare << endl;

tortoiseMove = 1 + rand() % 10;
cout << tortoiseMove << endl;

system("PAUSE"); // this hopefully will prevent the program from flashing by too fast to see!
return 0; // the classic way to end the program!

} // end of the function named main
 

A:C++ Beginner Question About Random Numbers

Read other 9 answers
RELEVANCY SCORE 49.2

Can this be done?
problem: column of random numbers, display ten of these numbers on screen permanently in sequence of
largest to smallest. As the numbers in column A changes so too should the display.
I know this could be done with filters but is not what I need.

Col A..... Col B
1 ..........Eggs don't have legs
7 ..........Ban weather reports
9 ..........Ban sports reports
2 ..........give up junk food

(full stops are for separation purposes only)
Display on screen permanently
9 Ban sport reports
7 Ban weather reports
2 Give up junk food
1 Eggs don't have legs
If 8 is added to col A then display should reflect the change thus:- 9, 8, 7, 2
if 7 is removed from col A display would be 9,8,2,1

if it can't be done automatically then a macro would suffice.

These numbers would then be used to vlookup associated data.
In this way one could instantly see if (eg) an account is overdue or due without having to do anything (if not macro). Could be used for many other things.

PS. The numbers for col A would be automatically calculated from date of entry or other means
 

Read other answers