Re: generating number ranges using rand function

2008-05-05 Thread Rob Dixon
John W. Krahn wrote: > Aruna Goke wrote: >> I have worked on the code below and am able to generate the 15digit >> lenght required . >> >> However, what i wish to achieve is to make sure all the output comes out >> in 15 digits each. a sample of my output is as below. >> >> Can someone guide on h

Re: generating number ranges using rand function

2008-05-04 Thread Aruna Goke
John W. Krahn wrote: Aruna Goke wrote: I have worked on the code below and am able to generate the 15digit lenght required . However, what i wish to achieve is to make sure all the output comes out in 15 digits each. a sample of my output is as below. Can someone guide on how to make all co

Re: generating number ranges using rand function

2008-05-04 Thread John W. Krahn
Aruna Goke wrote: I have worked on the code below and am able to generate the 15digit lenght required . However, what i wish to achieve is to make sure all the output comes out in 15 digits each. a sample of my output is as below. Can someone guide on how to make all come out in 15digits.

Re: generating number ranges using rand function

2008-05-04 Thread Jenda Krynicky
From: Aruna Goke <[EMAIL PROTECTED]> > I have worked on the code below and am able to generate the 15digit > lenght required . > > However, what i wish to achieve is to make sure all the output comes out > in 15 digits each. a sample of my output is as below. > > Can someone guide on how to mak

Re: generating number ranges using rand function

2008-05-04 Thread Gunnar Hjalmarsson
Aruna Goke wrote: I have worked on the code below and am able to generate the 15digit lenght required . However, what i wish to achieve is to make sure all the output comes out in 15 digits each. a sample of my output is as below. Can someone guide on how to make all come out in 15digits. T

generating number ranges using rand function

2008-05-04 Thread Aruna Goke
I have worked on the code below and am able to generate the 15digit lenght required . However, what i wish to achieve is to make sure all the output comes out in 15 digits each. a sample of my output is as below. Can someone guide on how to make all come out in 15digits. Thank you. Goksie

Re: Using rand problem

2004-10-28 Thread Gunnar Hjalmarsson
Jeff Borders wrote: I've written a simple quiz program and I've run into a problem with rand and the integer it returns. It seems that it will eventually choose either 0 or n+1 which blows up my array. I want to make sure it chooses from the entire pool of questions. ie. Don't skip the first and

Using rand problem

2004-10-28 Thread Jeff Borders
Hello, I've written a simple quiz program and I've run into a problem with rand and the integer it returns. It seems that it will eventually choose either 0 or n+1 which blows up my array. I want to make sure it chooses from the entire pool of questions. ie. Don't skip the first and last array

RE: using rand

2001-10-02 Thread Jeff 'japhy' Pinyan
On Oct 2, Bob Showalter said: >> -Original Message- >> From: eric [mailto:[EMAIL PROTECTED]] >> >> show how to creat a random number inthe following range: >> 5 to 15 >> -10 to 20 >> >> the documentation for rand and srand are not too useful. > >Well, they're extremely useful in telling

RE: using rand

2001-10-02 Thread Bob Showalter
> -Original Message- > From: eric [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 02, 2001 4:12 AM > To: [EMAIL PROTECTED] > Subject: using rand > > > i'm taking an intro to programming with PERL class. one of > the problems > asks us to do t

using rand

2001-10-02 Thread eric
i'm taking an intro to programming with PERL class. one of the problems asks us to do the following: show how to creat a random number inthe following range: 5 to 15 -10 to 20 the documentation for rand and srand are not too useful. Any help would be great. thanks, eric -- To unsubscribe,