LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2014, 02:20 AM   #1
massy
Member
 
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Blog Entries: 1

Rep: Reputation: Disabled
Problem in running random command in ubunto


When I use random command in command line, the message is shown:
random: denominator is not valid.

Last edited by massy; 02-08-2014 at 04:13 AM.
 
Old 02-08-2014, 06:38 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i don't have a random command on my system, but why don't you try
Code:
man random
 
Old 02-09-2014, 03:37 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Or indeed show us what you did ....
 
Old 02-10-2014, 04:06 AM   #4
massy
Member
 
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Or indeed show us what you did ....
Code:
 random 100..200
 
Old 02-10-2014, 04:23 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
this is part of the package bsdgames, see here: http://manpages.ubuntu.com/manpages/.../random.6.html
what did you expect?
 
1 members found this post helpful.
Old 02-10-2014, 05:24 AM   #6
massy
Member
 
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
this is part of the package bsdgames, see here: http://manpages.ubuntu.com/manpages/.../random.6.html
what did you expect?
I know, but when I run it the message is shown:
random: denominator is not valid.
 
Old 02-10-2014, 05:36 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
denominator is an integer, 100..200 is not accepted (not a valid input)
 
2 members found this post helpful.
Old 02-10-2014, 06:15 AM   #8
massy
Member
 
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
denominator is an integer, 100..200 is not accepted (not a valid input)
I need to produce some random values between 100--200
what should I do!!?
 
Old 02-10-2014, 06:26 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
see for example here: http://www.tldp.org/LDP/abs/html/randomvar.html
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running leach algorithm in ns2 simulator on ubunto 12.04 sweetgrl07 Ubuntu 2 01-08-2014 03:26 AM
Installing and running LibCurl Library C Programs (UBUNTO 14.04) conrad143 LinuxQuestions.org Member Intro 3 11-06-2011 03:32 PM
Ubunto 9.04 after Installation takes me to a command prompt instead of booting intoOS Dajiba Linux - Newbie 4 05-13-2009 03:52 PM
I am trying to install ubunto with command dickie stangimon LinuxQuestions.org Member Intro 4 02-23-2009 07:43 AM
installed ubunto twice by mistake now in boot up screen get 2 options for ubunto salpapa Linux - Newbie 8 06-28-2007 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration