def METHOD_NAME(structure, shift):
  for sc in structure.scatterers():
    if(sc.flags.use_u_aniso() and sc.flags.grad_u_aniso()):
      u_star = list(sc.u_star)
      for i in range(6):
        u_star[i] += (shift * random.random())
      sc.u_star = u_star