support weight random algorithm.