Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Random number of elements from arrays

by Anonymous Monk
on Sep 20, 2016 at 15:47 UTC ( [id://1172225]=note: print w/replies, xml ) Need Help??


in reply to Re: Random number of elements from arrays
in thread Random number of elements from arrays

Its confused to explaing, but, this is what I amtrying to get.

Result:
option 1: AX1 AX3 - has 2 random elements from @acc
option 2: AX1PB7 AX3PB6 - has 2 random from @acc and 2 random from @sec
option 3: AX1XC2 AX2CX8 - has 2 random from @acc and 2 random from @third
option 4: AX3PB6XC8 AX1PB6CX2 - has 2 random from @acc, 2 random elements from @sec and 2 random from @third
  • Comment on Re^2: Random number of elements from arrays

Replies are listed 'Best First'.
Re^3: Random number of elements from arrays
by GrandFather (Saint) on Sep 20, 2016 at 21:17 UTC

    Often you can clear up confusion by being clearer about the context of what you are trying to do. Give us the bigger picture and we can more easily paint in the details.

    Premature optimization is the root of all job security

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found