Update random.d unittest to new weight calculations