Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import random
- #Generacion de tabla con valores random
- #id nombre apelp apelm edad sexo
- nombre = ["Christian","Ashley","Istar","Maia","Krishna","Nadir","Maria","Horus","Joss","Lenin","Alberto","Mario","Joe","Edgar","Ivan","Mei","Zelda"]
- apelpm = ["Rodriguez","Batalla","Vera","Fu","Smith","Guerrero","Leon","Hierro","Mota","Drusznovich","O'Donnell","Yeon","Fang","Solorzano","Atchin","Aranda ","Mbata","Kandu"]
- edad = [16,17,18,19,20,21,22,23,24,25,26]
- #sexo = ["Mujer","Hombre"]
- for i in range(100):
- print i,random.choice(nombre),random.choice(nombre),random.choice(apelpm),random.choice(apelpm),random.choice(edad)
- #,random.choice(sexo)
- print ("DB terminada")
Add Comment
Please, Sign In to add comment