<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Random From List of Numbers Toggled On or Off]]></title><description><![CDATA[<p>I can't seem to wrap my head around this and it's driving me nuts.</p>
<p>I want to toggle on or off numbers 1-5 then select randomly from what is toggled on.</p>
<p>So let's say numbers 1, 3, or 5 are toggled on. I want to randomly select one of those numbers.</p>
<p>It seems simple enough but I've been fiddling for hours please help</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 05:47:19 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14260.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Feb 2023 05:33:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 05:33:04 GMT]]></title><description><![CDATA[<p>I can't seem to wrap my head around this and it's driving me nuts.</p>
<p>I want to toggle on or off numbers 1-5 then select randomly from what is toggled on.</p>
<p>So let's say numbers 1, 3, or 5 are toggled on. I want to randomly select one of those numbers.</p>
<p>It seems simple enough but I've been fiddling for hours please help</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off</guid><dc:creator><![CDATA[zillaomg]]></dc:creator><pubDate>Wed, 08 Feb 2023 05:33:04 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 06:35:18 GMT]]></title><description><![CDATA[<p>I came up with a pretty complicated solution, but it seems to work. Here it is both as an image and an attachment.<br />
<img src="/uploads/files/1675838098289-randomly_select_toggled_values.png" alt="randomly_select_toggled_values.png" class="img-responsive img-markdown" /><br />
<a href="/uploads/files/1675838109463-randomly_select_toggled_values.pd">randomly_select_toggled_values.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/2</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Wed, 08 Feb 2023 06:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 07:48:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/zillaomg">@zillaomg</a> here's a simpler but maybe more cpu and memory-hungry version (bc you have to clear and repopulate a <code>[list store]</code> and <code>[bag]</code> every time, and use <code>[pipe]</code>)<br />
<img src="/uploads/files/1675842503627-screenshot_2023-02-07_23-48-10.png" alt="Screenshot_2023-02-07_23-48-10.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/3</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Wed, 08 Feb 2023 07:48:25 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 07:49:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/zillaomg">@zillaomg</a> Using the abs library...... always worth a look as mainly very useful abstractions (so still Vanilla Pd)......<br />
<a href="/uploads/files/1675842224544-try.zip">try.zip</a><br />
You an remove repeats of the random selection if you wish.<br />
The bang in the middle was connected after the [pack] ...... order of operations.<br />
CPU..... no idea.... but the selection list will always need to be re-built when a toggle is updated.<br />
David.<br />
<img src="/uploads/files/1675842526802-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 08 Feb 2023 07:49:12 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 08:04:23 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/zillaomg">@zillaomg</a> Ty all!</p>
<p>I actually got it working with the list-abs library using list-nth but it was stupid complicated.</p>
<p>Your solution(s) are much more elegant. <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a>'s is exactly what i'm looking for ty!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/5</guid><dc:creator><![CDATA[zillaomg]]></dc:creator><pubDate>Wed, 08 Feb 2023 08:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 11:52:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/zillaomg">@zillaomg</a> And one using messages and no abstractions just for fun and completions sake, should be fairly efficient, Could be reworked for [list store] without much effort but I have no idea if there is any advantage to that over messages.<br />
<a href="/uploads/files/1675857100930-rndtgl.pd">rndtgl.pd</a><br />
<img src="/uploads/files/1675857141161-untitled.png" alt="Untitled.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/6</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Wed, 08 Feb 2023 11:52:24 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 22:34:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/zillaomg">@zillaomg</a> He he he...piling on....<br />
<a href="/uploads/files/1675875374283-choose-random-toggle.pd">choose random toggle.pd</a><br />
<img src="/uploads/files/1675875346533-screenshot-2023-02-08-115427.png" alt="Screenshot 2023-02-08 115427.png" class="img-responsive img-markdown" /><br />
Edit: less cluttered way to set the array<br />
<img src="/uploads/files/1675895635064-screenshot-2023-02-08-173231.png" alt="Screenshot 2023-02-08 173231.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/7</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Wed, 08 Feb 2023 22:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 17:59:08 GMT]]></title><description><![CDATA[<p>I got 1 more too, after seeing <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a>'s I was inspired to make a hybrid of ours:<br />
<img src="/uploads/files/1675877996744-screenshot_2023-02-08_09-39-36.png" alt="Screenshot_2023-02-08_09-39-36.png" class="img-responsive img-markdown" /><br />
edit: actually you don't even necessarily have to use lists:<br />
<img src="/uploads/files/1675878961467-screenshot_2023-02-08_09-55-46.png" alt="Screenshot_2023-02-08_09-55-46.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/8</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Wed, 08 Feb 2023 17:59:08 GMT</pubDate></item><item><title><![CDATA[Reply to Random From List of Numbers Toggled On or Off on Wed, 08 Feb 2023 20:06:01 GMT]]></title><description><![CDATA[<p>ahaha amazing thanks friends. my pd weaknesses have certainly been illuminated through this endeavor. I've usually been pretty quick at achieving a goal in pure data but apparently havent been using messages/lists or arrays/tables past to their full potential</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14260/random-from-list-of-numbers-toggled-on-or-off/9</guid><dc:creator><![CDATA[zillaomg]]></dc:creator><pubDate>Wed, 08 Feb 2023 20:06:01 GMT</pubDate></item></channel></rss>