user
Instruction:Create a computer program that takes a given input string and produces a new output by rearranging the letters in the original string.

Input: Input string: Hello


assistant
def scramble(word):
  output = ""
  while len(word) > 0:
    index = random.randint(0,len(word)-1)
    output += word[index]
    word = word[:index] + word[index+1:] 
  return output

scramble("Hello")  # Output: lleHo (or some other random rearrangement)