Generating random strings (for testing)

While converting some of my objective-c application towards swift, I also needed to port the generation of randome strings to swift. I use random strings during development to debug length of labels, buttons… to see if the UI scales nicely. In effect I use it to generate dummy data in my model.

After doing some research, I came up with the following 3 different functions:


Generating random strings (for testing)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">