Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: list of four digit lock combinations without repeated digits

by choroba (Bishop)
on Jun 20, 2018 at 21:58 UTC ( #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
Node Status?
node history
Node Type: note [id://1217077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2019-05-26 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (153 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!