<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Randomness on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/randomness/</link><description>Recent content in Randomness on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 01 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/randomness/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 5: Generating Passwords with Specific Length</title><link>https://ai-blog.noorshomelab.dev/rust-password-generator-guide/chapter-05-generating-passwords-with-length/</link><pubDate>Mon, 01 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-password-generator-guide/chapter-05-generating-passwords-with-length/</guid><description>&lt;h3 id="purpose-of-this-chapter"&gt;Purpose of This Chapter&lt;/h3&gt;
&lt;p&gt;We have the ability to gather user preferences for character types and a desired password length. In this chapter, we will ensure that our password generation loop correctly produces a password of exactly the &lt;code&gt;length&lt;/code&gt; specified by the user, drawing characters from our carefully constructed character pool. While the previous chapter already introduced this loop, this chapter solidifies its role and ensures its accuracy.&lt;/p&gt;
&lt;h3 id="concepts-explained"&gt;Concepts Explained&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Looping for Length:&lt;/strong&gt; The fundamental approach to generating a password of a specific length is to iterate that many times, picking one random character in each iteration and appending it to our result string.&lt;/p&gt;</description></item></channel></rss>