Register
It is currently Wed Oct 22, 2014 5:07 pm

$RANDOM


All times are UTC - 6 hours


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Tue Sep 14, 2010 3:25 am   

Joined: Tue May 05, 2009 6:49 am
Posts: 4
Hello,

I must code a script using printf and $RANDOM with an output like the following :
1234.1455

Can you help me ?


Top
 Profile  
 PostPosted: Tue Sep 14, 2010 10:58 pm   
User avatar

Joined: Sun Jun 27, 2010 12:57 am
Posts: 192
Sounds like a nice homework assignment.
What have you tried yourself? If we can see that, perhaps we can give help on what you did wrong.


Top
 Profile  
 PostPosted: Thu Sep 16, 2010 5:59 am   

Joined: Tue May 05, 2009 6:49 am
Posts: 4
printf %d.%d $RANDOM $RANDOM


Top
 Profile  
 PostPosted: Thu Sep 16, 2010 12:45 pm   
User avatar

Joined: Sun Jun 27, 2010 12:57 am
Posts: 192
Well, there's nothing wrong with that, and it outputs something similar to your request. So I say a job well done!


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP