ThreadLocalRandom.NextLong Método

Definición

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.

Se aplica a