dimanche 28 mai 2023

How do you generate a list of strings with strange, bizzare, or funny capitalization? [duplicate]

When testing semi-case-insensitive languages, it is helpful to generate semi-randomly capitalized text.

How do we accept a text as input and output scrambled text (scrambled in terms of capitalization only, everything else can be fine).

inPUt Is EnGLiSH
input is english
iNPUt IS englisH
INpuT IS ENGlISH
input is English
INpUt IS EngLiSH
iNPuT iS enGlIsH
Input is English
INPUT IS ENGLISH

A semi-case insensitive language is a language L such that:
for any two x




Aucun commentaire:

Enregistrer un commentaire