elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Curso de javascript por TickTack


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  excluir numeros de la funcion Rnd(x,y)?
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: 1 [2] Ir Abajo Respuesta Imprimir
Autor Tema: excluir numeros de la funcion Rnd(x,y)?  (Leído 6,309 veces)
Miseryk

Desconectado Desconectado

Mensajes: 225


SI.NU.SA U.GU.DE (2NE1 - D-Unit)


Ver Perfil
Re: excluir numeros de la funcion Rnd(x,y)?
« Respuesta #10 en: 3 Mayo 2013, 23:54 pm »

Yo usualmente uso una función que tiene un juego llamado Argentum Online:

Código
  1. Public Function RandomNumber(ByVal LowerBound As Long, ByVal UpperBound As Long) As Long
  2.    'Initialize randomizer
  3.    Randomize Timer
  4.  
  5.    'Generate random number
  6.    RandomNumber = (UpperBound - LowerBound) * Rnd + LowerBound
  7. End Function
  8.  

Se usa como: var = RandomNumber(1,9)


En línea

Can you see it?
The worst is over
The monsters in my head are scared of love
Fallen people listen up! It’s never too late to change our luck
So, don’t let them steal your light
Don’t let them break your stride
There is light on the other side
And you’ll see all the raindrops falling behind
Make it out tonight
it’s a revolution

CL!!!
Páginas: 1 [2] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
numeros aleatorios en funcion de una division
Programación Visual Basic
Pegano25 9 3,945 Último mensaje 12 Junio 2011, 20:43 pm
por martin_poipon
[RETO] + Funcion Extraer Numeros de Cadenas! [Cpp/C] « 1 2 3 4 »
Programación C/C++
x64core 39 34,759 Último mensaje 8 Enero 2012, 00:58 am
por Eternal Idol
[RETO] + Funcion Extraer Numeros de Cadenas! « 1 2 ... 5 6 »
Programación Visual Basic
x64core 55 27,710 Último mensaje 9 Enero 2012, 10:26 am
por Psyke1
Help! Calcular máximo de 3 numeros usando función
Programación C/C++
sora_ori 5 3,758 Último mensaje 18 Febrero 2013, 23:34 pm
por BatchianoISpyxolo
Limitar rango de numeros en funcion
Programación C/C++
luis456 1 3,341 Último mensaje 15 Abril 2013, 20:58 pm
por leosansan
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines