tag:support.nodebox.net,2012-11-01:/discussions/nodebox-2-3/6172-random-list-of-length-100-with-values-of-list-of-four-0-90-180-270NodeBox: Discussion 2019-11-25T18:06:08Ztag:support.nodebox.net,2012-11-01:Comment/478669262019-11-25T18:06:07Z2019-11-25T18:06:07Zrandom list of length 100 with values of list of four [0, 90, 180, 270]<div><p>Hi Kati,</p>
<p>Use a Random Number node. Set Amount to 100, Start to 0.00, End to 4.00.</p>
<p>Hook that to a Floor node. This will turn the fractions into integers. (Everything between 0 and 1 becomes a 0, everything between 1 and 2 becomes a 1, etc.). You should now see a list of length 100 with values of 0, 1, 2, or 3.</p>
<p>Hook that to Multiply node. Set Value2 to 90. That should give you want you want. You can change the Seed value in the Random Numbers node to get different random lists.</p>
<p>[The Sample node breaks a range into n pieces; it is not a "random sample".]</p>
<p>Let me know if you have any other questions. I'm happy to help.</p>
<p>John</p></div>john