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