class

Godot::RandomNumberGenerator

Inherits Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

get_seed
Source
get_state
Source
rand_weighted(weights : Pointer(Void)) : Int64
Source
randf
Source
randf_range(from : Float64, to : Float64) : Float64
Source
randfn(mean : Float64, deviation : Float64) : Float64
Source
randi
Source
randi_range(from : Int64, to : Int64) : Int64
Source
randomize
Source
seed

Property seed getter

Source
seed=(val : Int)

Property seed setter

Source
set_seed(seed : Int64) : Void
Source
set_state(state : Int64) : Void
Source
state

Property state getter

Source
state=(val : Int)

Property state setter

Source