<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lolcow.city/foodie-beauty/index.php?action=history&amp;feed=atom&amp;title=Module%3ADidYouKnow</id>
	<title>Module:DidYouKnow - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lolcow.city/foodie-beauty/index.php?action=history&amp;feed=atom&amp;title=Module%3ADidYouKnow"/>
	<link rel="alternate" type="text/html" href="https://wiki.lolcow.city/foodie-beauty/index.php?title=Module:DidYouKnow&amp;action=history"/>
	<updated>2026-04-11T19:15:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.lolcow.city/foodie-beauty/index.php?title=Module:DidYouKnow&amp;diff=7&amp;oldid=prev</id>
		<title>Aviv: Created page with &quot;--made by Lew Easy   local p = {}  function p.shuffle(tbl)     local size = #tbl     for i = size, 2, -1 do         local rand = math.random(i)         tbl[i], tbl[rand] = tbl[rand], tbl[i]     end     return tbl end  function p.getDidYouKnow(frame)     math.randomseed(os.time())      local facts = mw.text.split(frame.args.facts, &quot;\n&quot;)      local nonEmptyFacts = {}     for _, fact in ipairs(facts) do         if fact ~= &quot;&quot; then             table.insert(nonEmptyFacts, fact...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.lolcow.city/foodie-beauty/index.php?title=Module:DidYouKnow&amp;diff=7&amp;oldid=prev"/>
		<updated>2024-07-13T16:51:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--made by Lew Easy   local p = {}  function p.shuffle(tbl)     local size = #tbl     for i = size, 2, -1 do         local rand = math.random(i)         tbl[i], tbl[rand] = tbl[rand], tbl[i]     end     return tbl end  function p.getDidYouKnow(frame)     math.randomseed(os.time())      local facts = mw.text.split(frame.args.facts, &amp;quot;\n&amp;quot;)      local nonEmptyFacts = {}     for _, fact in ipairs(facts) do         if fact ~= &amp;quot;&amp;quot; then             table.insert(nonEmptyFacts, fact...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--made by Lew Easy &lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.shuffle(tbl)&lt;br /&gt;
    local size = #tbl&lt;br /&gt;
    for i = size, 2, -1 do&lt;br /&gt;
        local rand = math.random(i)&lt;br /&gt;
        tbl[i], tbl[rand] = tbl[rand], tbl[i]&lt;br /&gt;
    end&lt;br /&gt;
    return tbl&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getDidYouKnow(frame)&lt;br /&gt;
    math.randomseed(os.time())&lt;br /&gt;
&lt;br /&gt;
    local facts = mw.text.split(frame.args.facts, &amp;quot;\n&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    local nonEmptyFacts = {}&lt;br /&gt;
    for _, fact in ipairs(facts) do&lt;br /&gt;
        if fact ~= &amp;quot;&amp;quot; then&lt;br /&gt;
            table.insert(nonEmptyFacts, fact)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local count = tonumber(frame.args.count) or 2&lt;br /&gt;
&lt;br /&gt;
    p.shuffle(nonEmptyFacts)&lt;br /&gt;
&lt;br /&gt;
    local selectedFacts = {}&lt;br /&gt;
    for i = 1, count do&lt;br /&gt;
        if nonEmptyFacts[i] then&lt;br /&gt;
            table.insert(selectedFacts, &amp;quot;* &amp;quot; .. nonEmptyFacts[i])&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return table.concat(selectedFacts, &amp;quot;\n&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Aviv</name></author>
	</entry>
</feed>