For some reason W-Space systems are also grouped in Regions. This might have an effect on which systems connect with which. The more a read about wormholes the more interesting it gets ðŸ™‚

]]>To keep it simple i used the following assumptions

– there are 2500 W-space systems

– W-space systems are numbered 1 to 2500

– every W-space connection from thera has an equal chance of appearing

I run the simulation 1000 times and count how many wormholes i get to explore

before the first duplicate. This is equal to drawing random numbers between 1 and 2500 until i get a number i already had.

import random

experimentmax = 1000

iterationmax = 1000

random.seed()

results = []

for exp in range(1,experimentmax):

wh_explored = []

for iteration in range(1,iterationmax):

wh_new = int(random.random()*2500)+1

if wh_explored.count(wh_new) > 0:

print iteration

results.append(iteration)

break

else:

wh_explored.append(wh_new)

print “average = “, sum(results)/float(len(results))

]]>A job well done!

]]>