Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

5 of 11
deleted 4 characters in body
jdt
  • 5.1k
  • 1
  • 16
  • 21

C (gcc), 173 bytes

#define r rand()
i;m;b;q(){for(m=0,i=1;i<5;i++)m|=!!(r%9)<<i;m||q();}f(){q();for(b=(r%4+1)*5;--b;)printf(b%5?(m&1<<b%5)?"%c%c":"--":(":"+!q()),"RWSC"[r%4],"urgbypcw"[r%8]);}

Try it online!

jdt
  • 5.1k
  • 1
  • 16
  • 21

AltStyle によって変換されたページ (->オリジナル) /