/* (non-Javadoc)
* @see ca.eandb.jmist.framework.Light#sample(ca.eandb.jmist.framework.path.PathInfo, ca.eandb.jmist.framework.Random)
*/
public LightNode sample(PathInfo pathInfo, double ru, double rv, double rj) {
SeedReference ref = new SeedReference(rj);
int index = RandomUtil.discrete(0, children().size() - 1, ref);
return ScaledLightNode.create(1.0 / children().size(),
children().get(index).sample(pathInfo, ru, rv, ref.seed), rj);
}