Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/10/2010, 12:39
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: ¿hacer clic en figuras?

randint

Código Python:
Ver original
  1. from random import randint
  2. print randint(0, 9)

Cita:
Iniciado por pydoc
randint(self, a, b) method of random.Random instance
Return random integer in range [a, b], including both end points.
Cita:
Iniciado por pydoc-es
randint(self, a, b) método de instancias random.Random
Regresa un numero aleatorio en el rando [a, b], incluyendo ambos puntos finales.
Edito: Shuffle es lo que ustedes necesitan.

Última edición por razpeitia; 30/10/2010 a las 12:50