Skip to content

Instantly share code, notes, and snippets.

@abrahamjso
Created May 24, 2013 16:24
Show Gist options
  • Save abrahamjso/5644678 to your computer and use it in GitHub Desktop.
Save abrahamjso/5644678 to your computer and use it in GitHub Desktop.
class Nodo_Intruso(object):
def __init__(self):
self.id = 0
self.x = 0
self.y = 0
self.x = 0
self.arr_trayectoria = []
def crea_nodo_intruso(self):
self.x = self.generarRandom()
self.y = self.generarRandom()
self.z = random.choice(CHOOSE_Z)
def crea_nodo_intruso_test(self):
self.x = 4#self.generarRandom()
self.y = 8#self.generarRandom()
self.z = 0
def generarRandom(self, num=-50, num2=50):
return random.randrange(num, num2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment