Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/10/2009, 14:19
agus0
 
Fecha de Ingreso: mayo-2009
Mensajes: 94
Antigüedad: 15 años, 8 meses
Puntos: 3
Respuesta: Generador de Numeros

Numeros al azar?
seria asi:

Código PHP:
Private Function Aleatorio(Minimo As LongMaximo As Long) As Long
Randomize  inicializar la semilla
Aleatorio 
CLng((Minimo Maximo) * Rnd Maximo)
End Function

Private 
Sub Command1_Click()
Text1.Text Aleatorio(10009999)
Text2.Text Aleatorio(10009999)
Text3.Text Aleatorio(10009999)
Text4.Text Aleatorio(100000999999)
Text4.Text Text4.Text Aleatorio(1000099999)
End Sub