[{"data":1,"prerenderedAt":228},["ShallowReactive",2],{"/dict/n-of":3,"/dict/n-of-surround":217},{"id":4,"title":5,"body":6,"description":183,"extension":184,"meta":185,"navigation":204,"path":213,"seo":214,"stem":215,"__hash__":216},"content/dict/n-of.md","NetLogo Dictionary: n-of",{"type":7,"value":8,"toc":172},"minimark",[9],[10,11,16,35,72,78,84,90,96,144],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","n-of","region",[17,18,20],"h3",{"id":19},"n-of31",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#n-of","doc-noteref","Reference to n-of","\nn-of\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n3.1\n",[36,37,41],"h4",{"id":38,"className":39},"n-of-size-agentsetn-of-size-list",[40],"section-heading",[21,42,46,62],{"className":43,"href":45},[44],"section-anchor","#n-of-size-agentsetn-of-size-list",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54,58,59],"p",{},"n-of ",[55,56,57],"em",{},"size"," ",[55,60,61],{},"agentset",[28,63,65],{"className":64},[49],[51,66,53,67,58,69],{},[55,68,57],{},[55,70,71],{},"list",[51,73,74,75,77],{},"From an agentset, reports an agentset of size ",[55,76,57],{},"randomly chosen from the input set, with no repeats.",[51,79,80,81,83],{},"From a list, reports a list of size ",[55,82,57],{}," randomly chosen\nfrom the input set, with no repeats. The items in the result\nappear in the same order that they appeared in the input list.\n(If you want them in random order, use shuffle on the result.)",[51,85,86,87,89],{},"It is an error for ",[55,88,57],{}," to be greater than the size of the\ninput.",[51,91,92,93,95],{},"If ",[55,94,57],{}," is fractional, it will be rounded down to\nthe nearest integer (4.5 becomes 4, 10.9 becomes 10).",[97,98,99],"pre",{},[100,101,102,58,108,58,112,58,117,121,122,58,126,58,130,135,136,139],"code",{},[28,103,107],{"className":104},[105,106],"token","command","ask",[28,109,14],{"className":110},[105,111],"reporter",[28,113,116],{"className":114},[105,115],"number","50",[28,118,120],{"className":119},[105,111],"patches"," [ ",[28,123,125],{"className":124},[105,106],"set",[28,127,129],{"className":128},[105,111],"pcolor",[28,131,134],{"className":132},[105,133],"constant","green"," ]",[137,138],"br",{},[28,140,143],{"className":141},[105,142],"comment",";; 50 randomly chosen patches turn green",[51,145,146,147,159,160,168,169,171],{},"See also ",[148,149,151],"primitive",{"displayText":150,"permalink":150},"one-of",[21,152,150],{"className":153,"dataDisplayText":150,"href":155,"rel":156,"target":158,"title":150},[154],"netlogo-wiki-link","/dictionary#one-of",[157],"noopener","_self"," and ",[148,161,163],{"displayText":162,"permalink":162},"up-to-n-of",[21,164,162],{"className":165,"dataDisplayText":162,"href":166,"rel":167,"target":158,"title":162},[154],"/dictionary#up-to-n-of",[157],",\na version that does not error with a ",[55,170,57],{}," greater than\nthe size of the input.",{"title":173,"searchDepth":174,"depth":175,"links":176},"",5,3,[177],{"id":19,"depth":175,"text":178,"children":179},"\nn-of\n\n3.1\n",[180],{"id":38,"depth":181,"text":182},4,"n-of size agentsetn-of size list","Documentation for the n-of primitive.","md",{"source":186,"metadataOutputPath":187,"projectConfig":188,"language":196,"inheritFrom":205,"output":204,"version":189,"layout":206,"dictionaryDisplayName":207,"dictionaryHomeDirectory":208,"indexFileURI":209,"currentItemId":14,"currentItemLabel":14,"primRoot":210,"icon":211,"assetsRoot":212},"autogen/dict/n-of.md","content/dict/n-of.metadata.yaml",{"version":189,"projectRoot":190,"scanRoot":191,"outputRoot":192,"defaults":193,"engine":199,"partials":200,"dedupeIdenticalDiskWrites":204},"7.0.4",".","autogen","content",{"inheritFrom":194,"language":196,"output":197,"extension":184,"title":198,"version":189},[195],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":201,"extensions":202},[190],[203,184],"mustache",true,[195],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/n-of",{"title":5,"description":183},"dict/n-of","nD3TIAbuFbmqvDtXTjq3UxWtunna7kLTaiYaGeOJuCA",[218,223],{"title":219,"path":220,"stem":221,"description":222},"NetLogo Dictionary: myself","/dict/myself","dict/myself","Documentation for the myself primitive.",{"title":224,"path":225,"stem":226,"description":227},"NetLogo Dictionary: n-values","/dict/n-values","dict/n-values","Documentation for the n-values primitive.",1777657824598]