[{"data":1,"prerenderedAt":153},["ShallowReactive",2],{"/rnd/weighted-n-of":3,"/rnd/weighted-n-of-surround":142},{"id":4,"title":5,"body":6,"description":109,"extension":110,"meta":111,"navigation":128,"path":138,"seo":139,"stem":140,"__hash__":141},"content/rnd/weighted-n-of.md","Rnd Extension Dictionary: weighted-n-of",{"type":7,"value":8,"toc":98},"minimark",[9],[10,11,15,16,15,26,54,58,62,63,67,68,71,76,77,80,84,85,89,90],"div",{"className":12,"id":14},[13],"dict_entry","weighted-n-of","\n  ",[17,18,20,21,15],"h3",{"id":19},"rndweighted-n-of","\n    ",[22,23,25],"a",{"href":24},"#weighted-n-of","rnd:weighted-n-of",[27,28,32],"h4",{"id":29,"className":30},"rndweighted-n-of-size-agentset-reporter",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----rndweighted-n-of-size-agentset--reporter---",[38,39,42,43,47,48,47,51],"span",{"className":40},[41],"prim_example","rnd:weighted-n-of ",[44,45,46],"i",{},"size"," ",[44,49,50],{},"agentset",[44,52,53],{},"[ reporter ]",[55,56,57],"p",{},"Reports an agentset of the given ",[10,59,60],{},[44,61,46],{}," randomly chosen from the ",[10,64,65],{},[44,66,50],{},", with no repeats.",[55,69,70],{},"The probability of each agent being picked is proportional to the weight given by the ",[10,72,73],{},[44,74,75],{},"reporter"," for that agent. The weights must be non-negative numbers.",[55,78,79],{},"It is an error for ",[10,81,82],{},[44,83,46],{}," to be greater than the size of the ",[10,86,87],{},[44,88,50],{},".",[55,91,92,93,97],{},"If, at some point during the selection, there remains only candidates with a weight of ",[94,95,96],"code",{},"0.0",", they all have an equal probability of getting picked.",{"title":99,"searchDepth":100,"depth":101,"links":102},"",5,3,[103],{"id":19,"depth":101,"text":104,"children":105},"\n    rnd:weighted-n-of\n  ",[106],{"id":29,"depth":107,"text":108},4,"\n    rnd:weighted-n-of size agentset [ reporter ]\n  ","Documentation for the weighted-n-of primitive.","md",{"source":112,"metadataOutputPath":113,"projectConfig":114,"language":121,"inheritFrom":129,"output":128,"version":115,"layout":130,"dictionaryDisplayName":131,"dictionaryHomeDirectory":132,"indexFileURI":133,"currentItemId":14,"currentItemLabel":25,"primRoot":134,"icon":135,"extensionName":136,"assetsRoot":116},"../../external/extensions/rnd/rnd/weighted-n-of.md","content/rnd/weighted-n-of.metadata.yaml",{"version":115,"projectRoot":89,"scanRoot":116,"outputRoot":117,"defaults":118,"engine":124,"partials":125,"dedupeIdenticalDiskWrites":128},"7.0.4","/home/runner/work/Helio/Helio/external/extensions/rnd","content",{"inheritFrom":119,"language":121,"output":122,"extension":110,"title":123,"version":115},[120],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":126,"extensions":127},[89],[124,110],true,[120],"catalog","Rnd Extension Dictionary","/rnd.html","/_index/extensions/rnd.txt","rnd","i-mingcute-random-line",{"shortName":134,"fullName":137},"Rnd","/rnd/weighted-n-of",{"title":5,"description":109},"rnd/weighted-n-of","lzdMrAdQQFeuq6CaXWdy9obRKY4-CnhSLym2WQ9AuEo",[143,148],{"title":144,"path":145,"stem":146,"description":147,"children":-1},"Rnd Extension Dictionary: dictionary","/rnd/dictionary","rnd/dictionary","Documentation for the dictionary primitive.",{"title":149,"path":150,"stem":151,"description":152,"children":-1},"Rnd Extension Dictionary: weighted-n-of-list","/rnd/weighted-n-of-list","rnd/weighted-n-of-list","Documentation for the weighted-n-of-list primitive.",1777657781972]