user
Write a code to scramble a given sentence.

Sentence: She sells seashells on the seashore.


assistant
def scramble_sentence(sentence):
    # Split the sentence into a list of words
    words = sentence.split() 

    # Randomly shuffle the list of words
    random.shuffle(words) 

    # Join the shuffled words into a new sentence
    scrambled_sentence = ' '.join(words)

    # Return the scrambled sentence
    return scrambled_sentence

scramble_sentence("She sells seashells on the seashore.") # returns "seashore She seashells the on sells"