[{"data":1,"prerenderedAt":230},["ShallowReactive",2],{"/dict/up-to-n-of":3,"/dict/up-to-n-of-surround":219},{"id":4,"title":5,"body":6,"description":186,"extension":187,"meta":188,"navigation":206,"path":215,"seo":216,"stem":217,"__hash__":218},"content/dict/up-to-n-of.md","NetLogo Dictionary: up-to-n-of",{"type":7,"value":8,"toc":175},"minimark",[9],[10,11,16,35,72,81,90,96,150],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","up-to-n-of","region",[17,18,20],"h3",{"id":19},"up-to-n-of61",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#up-to-n-of","doc-noteref","Reference to up-to-n-of","\nup-to-n-of\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n6.1\n",[36,37,41],"h4",{"id":38,"className":39},"up-to-n-of-size-agentsetup-to-n-of-size-list",[40],"section-heading",[21,42,46,62],{"className":43,"href":45},[44],"section-anchor","#up-to-n-of-size-agentsetup-to-n-of-size-list",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54,58,59],"p",{},"up-to-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,78,80],{},"From an agentset, reports an agentset of size ",[55,76,57],{},"randomly chosen from the input set, with no repeats. If the\ninput does not have enough agents to satisfy the ",[55,79,57],{},",\nreports the entire agentset.",[51,82,83,84,86,87,89],{},"From a list, reports a list of size ",[55,85,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.)\nIf the input does not have enough items to satisfy the ",[55,88,57],{},", reports the entire list.",[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,144,146],"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",[137,145],{},[28,147,149],{"className":148},[105,142],";; if less than 50 patches exist, they all turn green",[51,151,152,153,165,166,174],{},"See also ",[154,155,157],"primitive",{"displayText":156,"permalink":156},"n-of",[21,158,156],{"className":159,"dataDisplayText":156,"href":161,"rel":162,"target":164,"title":156},[160],"netlogo-wiki-link","/dictionary#n-of",[163],"noopener","_self",", ",[154,167,169],{"displayText":168,"permalink":168},"one-of",[21,170,168],{"className":171,"dataDisplayText":168,"href":172,"rel":173,"target":164,"title":168},[160],"/dictionary#one-of",[163],".",{"title":176,"searchDepth":177,"depth":178,"links":179},"",5,3,[180],{"id":19,"depth":178,"text":181,"children":182},"\nup-to-n-of\n\n6.1\n",[183],{"id":38,"depth":184,"text":185},4,"up-to-n-of size agentsetup-to-n-of size list","Documentation for the up-to-n-of primitive.","md",{"source":189,"metadataOutputPath":190,"projectConfig":191,"language":198,"inheritFrom":207,"output":206,"version":192,"layout":208,"dictionaryDisplayName":209,"dictionaryHomeDirectory":210,"indexFileURI":211,"currentItemId":14,"currentItemLabel":14,"primRoot":212,"icon":213,"assetsRoot":214},"autogen/dict/up-to-n-of.md","content/dict/up-to-n-of.metadata.yaml",{"version":192,"projectRoot":174,"scanRoot":193,"outputRoot":194,"defaults":195,"engine":201,"partials":202,"dedupeIdenticalDiskWrites":206},"7.0.4","autogen","content",{"inheritFrom":196,"language":198,"output":199,"extension":187,"title":200,"version":192},[197],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":203,"extensions":204},[174],[205,187],"mustache",true,[197],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/up-to-n-of",{"title":5,"description":186},"dict/up-to-n-of","Zv1ZAPFruCamC0kW63lpvJ8wr40sz6r-DcUiIz1YlRI",[220,225],{"title":221,"path":222,"stem":223,"description":224},"NetLogo Dictionary: untie","/dict/untie","dict/untie","Documentation for the untie primitive.",{"title":226,"path":227,"stem":228,"description":229},"NetLogo Dictionary: update-plots","/dict/update-plots","dict/update-plots","Documentation for the update-plots primitive.",1777657846325]