Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: generating ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 11025 of 11531
Post > Topic >>

Re: generating number ranges using rand function

by myklass@[EMAIL PROTECTED] (Aruna Goke) May 4, 2008 at 11:48 PM

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 come out in 15digits.
> 
> print sprintf( '%.30f', rand ) =~ /\.(\d{15})/;
> 
> 
> John

Thanks nice one.

Goksie
 




 6 Posts in Topic:
generating number ranges using rand function
myklass@[EMAIL PROTECTED]  2008-05-04 16:09:53 
Re: generating number ranges using rand function
noreply@[EMAIL PROTECTED]  2008-05-04 17:54:05 
Re: generating number ranges using rand function
Jenda@[EMAIL PROTECTED]   2008-05-04 18:38:43 
Re: generating number ranges using rand function
krahnj@[EMAIL PROTECTED]   2008-05-04 13:43:52 
Re: generating number ranges using rand function
myklass@[EMAIL PROTECTED]  2008-05-04 23:48:28 
Re: generating number ranges using rand function
rob.dixon@[EMAIL PROTECTE  2008-05-05 14:16:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:13:35 CDT 2008.