module.exports = "(function(e,i,t){var n=t(5894),r=t(6487),s=t(2165),o=t(4451).b,d={selectExperiment:function(e,i,t){if(!e.weightDistributions&&e.experiments.length>1)throw new o(\"weightDistributions must be defined if # experiments > 1.\");var d;if(1===e.experiments.length)d=e.experiments[0].id;else try{d=r.chooseWeightedCandidate(t,e.id,e.weightDistributions)}catch(e){throw new o(\"No eligible experiments in layer.\")}var f=n.find(e.experiments,{id:d});if(f&&!s.isValidExperiment(i,f))throw new o('Audience conditions failed for selected experiment: \"'+d+'\".');if(!f)throw new o('Unable to find selected experiment: \"'+d+'\".');return f}};e.exports=function(e){e.registerDecider(\"random\",d)}})";