Answer:
Done using Python programming language
# Python function to simulate 10000 trials for two words to be picked
# Comments are used for explanatory purpose
# Program starts here
Testsword = open('PrideAndPrejudice.txt', encoding='utf-8').
read()
#The following line split the Testword
splitwords = np.array(Testword.split())
In []:
# we'll make use of a temporary variable here. It'll be Initialise to 0
Temp = 0
# Here, the number of trials will be initialised to 0
Init = 10000l0
# Start iteration to search for possible words in PrideAndPrejudice
for count in np.arange(Init):
# search for 2 words
Splitted = np.random.choice(Testword, 2)
#implement the condition in hint above
iflen(Splitted.item(0)) != len(Splitted.item(1)) != len(Spliitem(2)) != len(words.item(0)):
#calcuate result
Temp = Temp + 1
num_different = Temp/Init