Skip to main content
added 487 characters in body
Source Link
wnull
  • 111
  • 5

PHP, 8383 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!

PHP, 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!

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!

added 31 characters in body
Source Link
wnull
  • 111
  • 5

PHP, 6083 bytes

For a change :)

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

Try it online!Try it online!

PHP, 60 bytes

For a change :)

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

Try it online!

PHP, 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!

Source Link
wnull
  • 111
  • 5

PHP, 60 bytes

For a change :)

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

Try it online!