<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>RNG on Bhaak&#39;s Blog</title>
    <link>https://bhaak.net/blog/tags/rng/</link>
    <description>Recent content in RNG on Bhaak&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 23 Nov 2023 12:48:00 +0100</lastBuildDate>
    <atom:link href="https://bhaak.net/blog/tags/rng/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Simulating candle flickering with a simple RNG</title>
      <link>https://bhaak.net/blog/posts/2023-11-23-candle-flickering-with-a-simple-rng/</link>
      <pubDate>Thu, 23 Nov 2023 12:48:00 +0100</pubDate>
      <guid>https://bhaak.net/blog/posts/2023-11-23-candle-flickering-with-a-simple-rng/</guid>
      <description>&lt;style&gt;&#xA;  #candle {&#xA;    background-color: black;&#xA;    color: #eee;&#xA;    width: fit-content;&#xA;    margin-left: 2vw;&#xA;    text-align: center;&#xA;    line-height: 0.9;&#xA;    font-size: 250%;&#xA;    margin-top: 0;&#xA;  }&#xA;&lt;/style&gt;&#xA;&lt;p&gt;While preparing to attach the electrical candles to the Christmas tree,&#xA;a question popped into my mind.&lt;/p&gt;&#xA;&lt;p&gt;There are electrical candles that simulate the flickering of real&#xA;candles. How complex would an algorithm have to be to be convincing?&lt;/p&gt;&#xA;&lt;p&gt;I wrote a quick proof of concept in Ruby for a script running in the terminal&#xA;which just randomly chooses a grey value to display.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
