yOu wiLl bE giVen A sTriNg wHich cOnsiSts oF pRintAble asCii cHarActErs.
yOu iTeraTe tHrougH thE sTrIng tHen chAnge rAndOM(uNifoRm, 50% cHanCe uPPercAse) lEtteRs to uPPercAse aNd eVerytHing elSe tO lOwercAse.
tHat'S iT.
(sorry for the punctuation, it was for the concept of the question)
Readable version:
You will be given a string which consists of printable ASCII characters.
You iterate through the string and change random(uniform, 50% chance uppercase) letters to uppercase, and everything else to lowercase.
that's it.
exaMplEs
iNpuT => pOssiBle oUtPUt
Programming puzzles and Code Golf => pRogRaMMiNg pUzzlEs aNd coDe goLf
dErpity deRp derP => deRpiTy dErp DerP
CAAAPSLOOOCK => cAAapslOoocK
_#$^&^&* => _#$^&^&*
s=>rand()%2?s.upper():s.lower()
\$\endgroup\$