Create a Python function to edit a given string by changing the order of some of its characters.
string: "hello world"
def edit_string(string):
 characters = list(string)
 np.random.shuffle(characters)
 edited_string = "".join(characters)
 return edited_string