Contents

nextInt()

Generates and returns a new random integer.

Declaration

func nextInt() -> Int

Return Value

A random integer value in the range [INT32_MIN, INT32_MAX].

Discussion

For more information, see GameplayKit Programming Guide.

See Also

Generating Random Numbers