W3cubDocs

/Haxe Java

Random

package java.util

implements Serializable

@:libType@:javaNative@:native("java.util.Random")@:javaCanonical("java.util","Random") Available on java

Constructor

@:overload new (param1:Int64)

@:overload new ()

Methods

@:overload nextBoolean ():Bool

@:overload nextBytes (param1:NativeArray<Int8>):Void

@:overload nextDouble ():Float

@:overload nextFloat ():Single

@:overload nextGaussian ():Float

@:overload nextInt (param1:Int):Int

@:overload nextInt ():Int

@:overload nextLong ():Int64

@:overload setSeed (param1:Int64):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/util/Random.html