Skip to main content
3 of 3
added 487 characters in body
wnull
  • 111
  • 5

PHP, 83 81 bytes

83 bytes

<?=($l=range(2,8))&&shuffle($l)?vsprintf("  1\n %d%2d\n%d 9 %d\n%2d%2d\n%3d",$l):0;

Try it online!


81 bytes

Splitting code into 2 fragments to save 2 characters. Thanks for the comment @manatwork.

<?$l=range(2,8);shuffle($l)?><?=vsprintf("  1\n %d%2d\n%d 9 %d\n%2d%2d\n%3d",$l);

Try it online!

wnull
  • 111
  • 5