[{"data":1,"prerenderedAt":278},["ShallowReactive",2],{"/dict/one-of":3,"/dict/one-of-surround":267},{"id":4,"title":5,"body":6,"description":234,"extension":235,"meta":236,"navigation":254,"path":263,"seo":264,"stem":265,"__hash__":266},"content/dict/one-of.md","NetLogo Dictionary: one-of",{"type":7,"value":8,"toc":223},"minimark",[9],[10,11,16,35,66,82,85,203],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","one-of","region",[17,18,20],"h3",{"id":19},"one-of10",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#one-of","doc-noteref","Reference to one-of","\none-of\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n1.0\n",[36,37,41],"h4",{"id":38,"className":39},"one-of-agentsetone-of-list",[40],"section-heading",[21,42,46,58],{"className":43,"href":45},[44],"section-anchor","#one-of-agentsetone-of-list",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54],"p",{},"one-of ",[55,56,57],"em",{},"agentset",[28,59,61],{"className":60},[49],[51,62,53,63],{},[55,64,65],{},"list",[51,67,68,69,81],{},"From an agentset, reports a random agent. If the agentset is empty,\nreports ",[70,71,73],"primitive",{"displayText":72,"permalink":72},"nobody",[21,74,72],{"className":75,"dataDisplayText":72,"href":77,"rel":78,"target":80,"title":72},[76],"netlogo-wiki-link","/dictionary#nobody",[79],"noopener","_self",".",[51,83,84],{},"From a list, reports a random list item. It is an error for the\nlist to be empty.",[86,87,88],"pre",{},[89,90,91,97,98,97,102,106,107,97,111,97,115,120,121,124,129,131,97,134,97,137,141,142,97,146,150,151,153,154,97,158,97,161,120,164,166,170,172,176,178,180,184,186,97,189,97,192,197,199],"code",{},[28,92,96],{"className":93},[94,95],"token","command","ask"," ",[28,99,14],{"className":100},[94,101],"reporter",[28,103,105],{"className":104},[94,101],"patches"," [ ",[28,108,110],{"className":109},[94,95],"set",[28,112,114],{"className":113},[94,101],"pcolor",[28,116,119],{"className":117},[94,118],"constant","green"," ]",[122,123],"br",{},[28,125,128],{"className":126},[94,127],"comment",";; a random patch turns green",[122,130],{},[28,132,96],{"className":133},[94,95],[28,135,105],{"className":136},[94,101],[28,138,140],{"className":139},[94,101],"with"," [",[28,143,145],{"className":144},[94,101],"any?",[28,147,149],{"className":148},[94,101],"turtles-here","]",[122,152],{},"  [ ",[28,155,157],{"className":156},[94,95],"show",[28,159,14],{"className":160},[94,101],[28,162,149],{"className":163},[94,101],[122,165],{},[28,167,169],{"className":168},[94,127],";; for each patch containing turtles, prints one of",[122,171],{},[28,173,175],{"className":174},[94,127],";; those turtles",[122,177],{},[122,179],{},[28,181,183],{"className":182},[94,127],";; suppose mylist is [1 2 3 4 5 6]",[122,185],{},[28,187,157],{"className":188},[94,95],[28,190,14],{"className":191},[94,101],[28,193,196],{"className":194},[94,195],"variable","mylist",[122,198],{},[28,200,202],{"className":201},[94,127],";; prints a value randomly chosen from the list",[51,204,205,206,214,215,81],{},"See also ",[70,207,209],{"displayText":208,"permalink":208},"n-of",[21,210,208],{"className":211,"dataDisplayText":208,"href":212,"rel":213,"target":80,"title":208},[76],"/dictionary#n-of",[79],", ",[70,216,218],{"displayText":217,"permalink":217},"up-to-n-of",[21,219,217],{"className":220,"dataDisplayText":217,"href":221,"rel":222,"target":80,"title":217},[76],"/dictionary#up-to-n-of",[79],{"title":224,"searchDepth":225,"depth":226,"links":227},"",5,3,[228],{"id":19,"depth":226,"text":229,"children":230},"\none-of\n\n1.0\n",[231],{"id":38,"depth":232,"text":233},4,"one-of agentsetone-of list","Documentation for the one-of primitive.","md",{"source":237,"metadataOutputPath":238,"projectConfig":239,"language":246,"inheritFrom":255,"output":254,"version":240,"layout":256,"dictionaryDisplayName":257,"dictionaryHomeDirectory":258,"indexFileURI":259,"currentItemId":14,"currentItemLabel":14,"primRoot":260,"icon":261,"assetsRoot":262},"autogen/dict/one-of.md","content/dict/one-of.metadata.yaml",{"version":240,"projectRoot":81,"scanRoot":241,"outputRoot":242,"defaults":243,"engine":249,"partials":250,"dedupeIdenticalDiskWrites":254},"7.0.4","autogen","content",{"inheritFrom":244,"language":246,"output":247,"extension":235,"title":248,"version":240},[245],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":251,"extensions":252},[81],[253,235],"mustache",true,[245],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/one-of",{"title":5,"description":234},"dict/one-of","81FdJrgjjpd6biLuNL7gyBBaDyaAegLgadaKeo_ZjQY",[268,273],{"title":269,"path":270,"stem":271,"description":272},"NetLogo Dictionary: of","/dict/of","dict/of","Documentation for the of primitive.",{"title":274,"path":275,"stem":276,"description":277},"NetLogo Dictionary: or","/dict/or","dict/or","Documentation for the or primitive.",1777657826756]