Visual Basic - NUMEROS ALEATORIOS

Life is soft - evento anual de software empresarial
 
Vista:

NUMEROS ALEATORIOS

Publicado por BETSY (28 intervenciones) el 18/04/2006 14:27:17
POR FAVOR NECESITO AYUDA CON LOS NUMEROS ALEATORIOS , YO QUISIERA GENERAR UN UN NUMERO ALEATORIO QUE COMENZARA SIEMPRE POR EL 2006 Y LUEGO 9 DIGITOS MAS , PODRIA QUEDAR ASI

2006125235215 PARA QUE DIERA UN TOTAL DE 13 DIGITOS PERO OJO QUE SIEMPRE AL PRINCIPIO QUEDE EL MISMO NUMERO 2006.

SE PODRA HACER ESO ,PORFA SI ALGUIEN PEDE AYUDARME ESTE ES MI CORREO GRACIAS DE ANTEMANO....
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:NUMEROS ALEATORIOS

Publicado por marcos (18 intervenciones) el 18/04/2006 15:00:59
Dim m As String
m = "2006" & CStr(Int(Rnd * 9) + 0) & CStr(Int(Rnd * 9) + 0) & ...
MsgBox m

Prueba esto...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:NUMEROS ALEATORIOS

Publicado por BETSY (28 intervenciones) el 18/04/2006 17:14:12
GRACIAS MARCOS POR TU AYUDA ...... ME DIO RESULTADO GRACIAS
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar