Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: list of four digit lock combinations without repeated digits

by choroba (Cardinal)
on Jun 20, 2018 at 21:58 UTC ( [id://1217077]=note: print w/replies, xml ) Need Help??


in reply to list of four digit lock combinations without repeated digits

Another possibility is to use Math::Combinatorics:
#! /usr/bin/perl use warnings; use strict; use feature qw{ say }; use Math::Combinatorics; my $count = 0; my $comb = 'Math::Combinatorics'->new(count => 4, data => [ 0 .. 9 ]); ++$count, say @$_ while @$_ = $comb->next_combination; say $count;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found