* Add C# code to random_number_generation and fix shuffle bag example.
Changes made to shuffle bag example:
- Replace .empty() with .is_empty()
- More descriptive comment
- Change code-block into a tabbed code block
---------
Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
- Document `Array.pick_random()` as a shorthand.
- Use global scope random methods as they are all available in global scope now.
- Remove calls to `randomize()` that are not needed for code samples
to be functional, as the engine now calls `randomize()` on startup
once automatically.
The `empty` method was renamed to `is_empty` somewhere between 3.x and
4.x so the code in the tutorial just needed to be brought up to date.
This was brought to light by someone in the Godot server on the #beginner-2
channel noticing an error when running that code:
https://discord.com/channels/212250894228652034/762480166248513577/1218050947385786438
* Update some C# examples
- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.
---------
Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>