C (gcc), 166 bytes
#define r rand()
i;m;b;q(){for(i=m=0;++i<5;)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]);}
jdt
- 5.1k
- 1
- 16
- 21
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange