ThreadLocalRandom.NextLong Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| NextLong(Int64) |
Por agregar |
| NextLong(Int64, Int64) |
Por agregar |
NextLong(Int64)
Por agregar
[Android.Runtime.Register("nextLong", "(J)J", "GetNextLong_JHandler")]
public virtual long NextLong(long bound);
[<Android.Runtime.Register("nextLong", "(J)J", "GetNextLong_JHandler")>]
override this.NextLong : int64 -> int64
Parámetros
- bound
- Int64
límite superior (exclusivo). Debe ser positivo.
Devoluciones
un valor pseudoaleatorio long entre cero (inclusivo) y el enlazado (exclusivo)
- Atributos
Excepciones
si n no es positivo
Comentarios
Por agregar
Java documentación para java.util.concurrent.ThreadLocalRandom.nextLong(long).
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.
Se aplica a
NextLong(Int64, Int64)
Por agregar
[Android.Runtime.Register("nextLong", "(JJ)J", "GetNextLong_JJHandler")]
public virtual long NextLong(long origin, long bound);
[<Android.Runtime.Register("nextLong", "(JJ)J", "GetNextLong_JJHandler")>]
override this.NextLong : int64 * int64 -> int64
Parámetros
- origin
- Int64
el valor mínimo devuelto
- bound
- Int64
límite superior (exclusivo)
Devoluciones
un valor pseudoaleatorio long entre el origen (inclusivo) y el enlazado (exclusivo)
- Atributos
Excepciones
si es menor o igual que enlazado
Comentarios
Por agregar
Java documentación para java.util.concurrent.ThreadLocalRandom.nextLong(long, long).
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.