01-10-2018
Hi Rdrtx1,
Assume if I have the shuffled numbers from 1 to 35 and I don't want to check all the number from 1-35, whereas, I need to check the number randomly on my own.
How can this be achieved.
Moderator's Comments:
|
|
DON'T hijack others' posts! Create your own, new thread!
|
|
Last edited by RudiC; 01-11-2018 at 09:31 AM..
9 More Discussions You Might Find Interesting
1. Programming
Hello Everyone
Im planning to make a C program to check a proxy server if it is working or bot, test the proxy speed ,response time , as well as a proxy type.
i'm learning using libcurl right now to fetch http headers. do you guys have some links about how to check proxy headers?. Thank you.
... (0 Replies)
Discussion started by: magictalong
0 Replies
2. Shell Programming and Scripting
Well I have a 3000 lines result log file that contains all the machine data when it does the testing... It has 3 different section that i am intrsted in
1) starting with "20071126 11:11:11 Machine Header 1"
1000 lines...
"End machine header 1"
2) starting with "20071126 12:12:12 Machine... (5 Replies)
Discussion started by: vikas.iet
5 Replies
3. UNIX for Dummies Questions & Answers
hello
showrev -p | wc -l
returns:
381
What to do in case I want to have this output:
number of lines returned by showrev -p is: 381
thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
4. Shell Programming and Scripting
Hi
I want the user to enter a date in the format 16-APR-2000 .
I need to put validations for that in my script ..
Please help
Thanks and Regards
Ultimatix (1 Reply)
Discussion started by: ultimatix
1 Replies
5. What is on Your Mind?
If you want to win some Bits, the jackpot for tomorrow's drawing is up to 219,500 Bits
Lottery tickets are only 100 Bits :D (0 Replies)
Discussion started by: Neo
0 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
When "niuspell" is invoked from the command line it reads "file" and checks it for spelling of the words it... (1 Reply)
Discussion started by: Jeffthrow5
1 Replies
7. Debian
Guys I am new to Linux in general and want to know what is the use of the following files-:
/usr/share/dict/words
/usr/share/dict/words.pre-dictionaries-common
Are they used by the spell checker to find potential typos ?
If so are there any better larger word lists out there ? I am sure... (2 Replies)
Discussion started by: sreyan32
2 Replies
8. Shell Programming and Scripting
Hi Gurus,
I have requirement to compare current result with previous reuslt.
The sample case is below.
1 job1 1
1 job2 2
1 job3 3
2 job_a1 1
2 job_a2 2
2 job_a3 3
3 job_b1 1
3 job_b2 2
for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies
9. Shell Programming and Scripting
hi ,
Let me put it in a different way with words.
Assume the lottery have numbers from 1-50.
Out of this 50 numbers, I am going to pick up only 35 numbers randomly.
so, my total numbers would be 35 numbers shuffled from nos.
I have list of winning numbers in file.
Now, the... (9 Replies)
Discussion started by: gsiva
9 Replies
LEARN ABOUT DEBIAN
algorithm::checkdigits::m10_009
CheckDigits::M10_009(3pm) User Contributed Perl Documentation CheckDigits::M10_009(3pm)
NAME
CheckDigits::M10_009 - compute check digits for Betriebsnummer (DE)
SYNOPSIS
use Algorithm::CheckDigits;
$betrnr = CheckDigits('betriebsnummer');
if ($betrnr->is_valid('73282932000074')) {
# do something
}
$cn = $betrnr->complete('7328293200007');
# $cn = '73282932000074'
$cd = $betrnr->checkdigit('73282932000074');
# $cd = '4'
$bn = $betrnr->basenumber('73282932000074');
# $bn = '7328293200007'
DESCRIPTION
ALGORITHM
1. Beginning left all numbers are weighted alternatively 1 and 2.
2. The total of the digits of all products is computed.
3. The sum of step 3 ist taken modulo 10.
4. The check digit is the difference between 10 and the number from step 3 taken modulo 10.
HINT: The last digit of the 'Betriebsnummer' may be the check digit or the last digit of the sum of the constant 5 and the check digit.
METHODS
is_valid($number)
Returns true only if $number consists solely of numbers and the last digit is a valid check digit according to the algorithm given
above.
Returns false otherwise,
complete($number)
The check digit for $number is computed and concatenated to the end of $number.
Returns the complete number with check digit or '' if $number does not consist solely of digits and spaces.
basenumber($number)
Returns the basenumber of $number if $number has a valid check digit.
Return '' otherwise.
checkdigit($number)
Returns the checkdigit of $number if $number has a valid check digit.
Return '' otherwise.
EXPORT
None by default.
AUTHOR
Mathias Weidner, <mathias@weidner.in-bad-schmiedeberg.de>
SEE ALSO
perl, CheckDigits, www.pruefziffernberechnung.de. www.dsi.cnrs.fr/bureau_qualite/admindonnees/documents/siren.pdf
perl v5.10.0 2008-05-17 CheckDigits::M10_009(3pm)