Skip to main content
deleted 5 characters in body
Source Link
Moris Zucca
  • 1.6k
  • 11
  • 17

APL 30 2726

,('AEIOUY'∪⎕A'EIOUY'∪⎕A)[6(|,+)⍪5?20]

Explanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


(∪'AEIOUY',⎕A'EIOUY'∪⎕A)[,6(|,(⍪+))5?20]

Explanation:

'AEIOUY'∪⎕A'EIOUY'∪⎕A    puts vowels in front of all letters.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.orgTryapl.org

APL 30 27

,('AEIOUY'∪⎕A)[6(|,+)⍪5?20]

Explanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


(∪'AEIOUY',⎕A)[,6(|,(⍪+))5?20]

Explanation:

'AEIOUY'∪⎕A    puts vowels in front of all letters.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.org

APL 30 26

,('EIOUY'∪⎕A)[6(|,+)⍪5?20]

Explanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


('EIOUY'∪⎕A)[,6(|,(⍪+))5?20]

Explanation:

'EIOUY'∪⎕A    puts vowels in front of all letters.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.org

deleted 1 character in body
Source Link
Moris Zucca
  • 1.6k
  • 11
  • 17

APL 30 2827

,(∪'AEIOUY',⎕A'AEIOUY'∪⎕A)[6(|,+)⍪5?20]

Explanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


(∪'AEIOUY',⎕A)[,6(|,(⍪+))5?20]

Explanation:

∪'AEIOUY',⎕A'AEIOUY'∪⎕A    puts vowels in front of all letters and then takes unics, so that vowels are in front, and consonants follow.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.orgTryapl.org

APL 30 28

,(∪'AEIOUY',⎕A)[6(|,+)⍪5?20]

Explanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


(∪'AEIOUY',⎕A)[,6(|,(⍪+))5?20]

Explanation:

∪'AEIOUY',⎕A    puts vowels in front of all letters and then takes unics, so that vowels are in front, and consonants follow.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.org

APL 30 27

,('AEIOUY'∪⎕A)[6(|,+)⍪5?20]

Explanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


(∪'AEIOUY',⎕A)[,6(|,(⍪+))5?20]

Explanation:

'AEIOUY'∪⎕A    puts vowels in front of all letters.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.org

added 26 characters in body
Source Link
Moris Zucca
  • 1.6k
  • 11
  • 17

APL 30 28

,(∪'AEIOUY',⎕A)[6(|,+)⍪5?20]

explanationExplanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


(∪'AEIOUY',⎕A)[,6(|,(⍪+))5?20]

Explanation:

∪'AEIOUY',⎕A    puts vowels in front of all letters and then takes unics, so that vowels are in front, and consonants follow.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.org

APL 30 28

,(∪'AEIOUY',⎕A)[6(|,+)⍪5?20]

explanation is very similar to the past version below, just reordered a bit to golf the solution.


(∪'AEIOUY',⎕A)[,6(|,(⍪+))5?20]

Explanation:

∪'AEIOUY',⎕A    puts vowels in front of all letters and then takes unics, so that vowels are in front, and consonants follow.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.org

APL 30 28

,(∪'AEIOUY',⎕A)[6(|,+)⍪5?20]

Explanation is very similar to the past version below, just reordered a bit to golf the solution.

Note: ⎕IO is set to 0


(∪'AEIOUY',⎕A)[,6(|,(⍪+))5?20]

Explanation:

∪'AEIOUY',⎕A    puts vowels in front of all letters and then takes unics, so that vowels are in front, and consonants follow.
5?20            for the indexes we start choosing 5 random numbers between 0 and 19
6(|,(⍪+))        then we sum 6 and the random numbers, convert to 5x1 matrix (⍪), add a column before this one containing 6 modulo the random numbers. 
                [[[ this one can be rewritten as: (6|n) , ⍪(6+n)  for easier understanding]]]
,6(|,(⍪+))5?20  the leading comma just converts the matrix to a vector, mixing the vowel and consonants indexes.

Tryapl.org

added 158 characters in body
Source Link
Moris Zucca
  • 1.6k
  • 11
  • 17
Loading
Source Link
Moris Zucca
  • 1.6k
  • 11
  • 17
Loading