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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-08-2014, 02:20 AM
|
#1
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Rep: 
|
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.
|
|
|
02-08-2014, 06:38 AM
|
#2
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
i don't have a random command on my system, but why don't you try
|
|
|
02-09-2014, 03:37 AM
|
#3
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,430
|
Or indeed show us what you did ....
|
|
|
02-10-2014, 04:06 AM
|
#4
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Original Poster
Rep: 
|
Quote:
Originally Posted by chrism01
Or indeed show us what you did ....
|
|
|
|
02-10-2014, 04:23 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,021
|
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.
|
02-10-2014, 05:24 AM
|
#6
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
|
I know, but when I run it the message is shown:
random: denominator is not valid.
|
|
|
02-10-2014, 05:36 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,021
|
denominator is an integer, 100..200 is not accepted (not a valid input)
|
|
2 members found this post helpful.
|
02-10-2014, 06:15 AM
|
#8
|
Member
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
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!!?
|
|
|
02-10-2014, 06:26 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,021
|
|
|
2 members found this post helpful.
|
All times are GMT -5. The time now is 11:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|