#RandomNumberGenerator
RandomNumberGenerator
September 25, 2025 at 12:21 PM
Getekend met behulp van een random nummer generator. Handgetekend #randomnumbergenerator #generatedart
January 23, 2025 at 9:29 PM
extension ConvertibleFromBytes {
static func random(using rng: inout some RandomNumberGenerator) -> Self { … }
}
June 21, 2026 at 6:19 AM
For today's Game Dev Tip Tuesday: Need locally scoped RNG or a way to set and retrieve a seed during the game? RandomNumberGenerator is there to help! You can also use it to pick an item from a list using weights:

#godot #godotengine #gamedevtiptuesday
November 27, 2024 at 1:11 AM
Create a procedural enemy spawn system in Godot 4.3. Use RandomNumberGenerator to pick spawn points from a predefined array. Set up an enemy group, call `randf()`, and manage enemies with `get_tree().get_nodes_in_group("enemy_group")`. 💥 #MakeGames #Godot #GameDev
December 30, 2024 at 10:24 PM
August 4, 2024 at 2:54 PM
Yep I'm making a dating sim. Yes it has buttons like Use and Talk. The character creator has a Masculine-Feminine slider. There's even a RandomNumberGenerator::randi method call
April 26, 2026 at 6:33 PM
You don't even need to use Create anymore. RandomNumberGenerator has static APIs that are allocation free (unless you ask it to return an allocation).
December 13, 2024 at 5:42 PM
I generally recommend if you arent, to use the RandomNumberGenerator class, and use it to generate your numbers if you aren't, that way you can put a random seed every load using the unix time, and actually have somewhat random results
July 19, 2026 at 4:19 PM
Currently doing more kinda boring bookkeeping programming, switching out my random number generation to use more of Godot's built-in functions (which I wasn't aware of until the other day). Who knew the RandomNumberGenerator class existed? Not this guy.
December 2, 2024 at 1:23 AM
"Each day, you get one roll to generate a random number from 0 to 1,000,000. Your number is analyzed for interesting patterns and properties, earning you badges and EP (entropy points)."

Okay.

https://www.rngdle.com

via @waxy

#games #randomnumbergenerator #rngdle
RNGdle
A daily random number game. Roll your number, collect badges, and compete with friends.
www.rngdle.com
April 30, 2026 at 9:55 PM
.NET developers, are you aware of the most efficient approach to generate random numbers in .NET 8? Explore the latest version of this article to uncover the answer!
#dotnet #CodePerformance #dotnet8 #MVPBuzz
General Performance Tip: Generating Random Numbers
.NET’s Random type has been a popular choice for generating random numbers. However, using RandomNumberGenerator for this purpose can result in a six-fold performance improvement, as shown in…
dotnettips.wordpress.com
June 26, 2025 at 3:38 PM
.NET developers, are you aware of the most efficient approach to generate random numbers in .NET 8? Explore the latest version of this article to uncover the answer!
#dotnet #CodePerformance #dotnet8 #MVPBuzz
General Performance Tip: Generating Random Numbers
.NET’s Random type has been a popular choice for generating random numbers. However, using RandomNumberGenerator for this purpose can result in a six-fold performance improvement, as shown in…
dotnettips.wordpress.com
December 27, 2024 at 2:05 PM
random number generator — ten draws from 1 to 10, all ten back, no repeats. Free.

toolio.pongvn.com/tools/random...

#randomdecimalnumber #randomnumbergenerator
August 16, 2026 at 3:15 AM
There’s a 32% chance that humanity goes extinct because of the 59% chance that AI destroys us but I think in 38 years we will achieve a 95% increase in abundance for all
😃

#RandomNumberGenerator #tech #AI #StockPumping #bullshit #abundance #memes #percentages #DumbestDystopia #Idiocracy #extinct
July 24, 2026 at 12:23 AM
Random number generation should hit like a power chord, not drag like a weak soundcheck.
This .NET performance tip shows a faster way to get the job done.
#dotnet #MVPBuzz #CodePerformance
dotnettips.com/2024/03/27/g...
General Performance: Optimizing Random Number Generation
The .NET Random type generates random numbers effectively, but using RandomNumberGenerator is significantly more efficient, offering a 7.08× speed increase. Both methods allocate equal memory; howe…
dotnettips.com
July 21, 2026 at 3:28 PM
Very nice:

"Where Did Go Wrong?", Martin Hořeňovský, CPP Prague, June 2024 [PDF] (codingnest.com/files/What%2...)

Video: www.youtube.com/watch?v=rKk6...

Via Lobsters: lobste.rs/s/l8y8gg/whe...

#Random #CPP #STL #Programming #API #RandomNumberGenerator #RNG #Ergonomics #Math
codingnest.com
June 5, 2025 at 12:53 AM
They backported Array.pick_random() from Godot 4 to 3 but ignored the rest of the feature request that asked to be able to supply an optional RandomNumberGenerator object. So if you want it to be deterministic you still have roll your own. 😑
February 22, 2026 at 4:30 PM
Rand_weighted() not working on web?
Shameless self plug but I made an EZ-RNG asset lib entry and under the hood of it this implementation works: var ezrng: RandomNumberGenerator = RandomNumberGenerator.new() func gen_weighted(count: int, weights: PackedFloat32Array) -> Array[int]: var arr_int: Array[int] = [] for c in count: arr_int.append(ezrng.rand_weighted(weights)) return arr_int As an example: ## Specify an array of things you want to be picked with favorability var favorite_snacks: Array[String] = ["apple", "cookie", "ice cream"] ## Specify the weights, or, favorability of these things in the same order ## e.g. I like cookies twice as much as apples, and ice cream twice as much as cookies var snack_weights: PackedFloat32Array = [0.5, 1.0, 2.0] ## Let's say I want to buy snacks for the next two weeks, eating one per day ## This means we want 14 random values to be generated to then align with the snack indices var weight_results: Array[int] = EZRNG.gen_weighted(14, snack_weights) ## The weight_results array will favor ice cream but still pick apples and cookies ## Now we combine the weight_results and favorite_snacks to see what to buy var snack_purchase: Array[String] = [] for result in weight_results: snack_purchase.append(favorite_snacks[result]) In short, rand_weighted() doesn’t work as directly as you may be trying to use it. If you happen to have a fresh HTML5 export, do you have a link to the latest version of your project files? In my forums profile I have an article of server-less HTML5 export hosting I could try to replicate. Also for your print(result) test above, you’re not statically typing it, can you also print the typeof() of result? When you say print(result) returns null, is nothing being printed to the F12 console when running the Debug version of your export? Or is it printing the word null? What is your RandomNumberGenerator.new() setup and are you calling randomize() anywhere? Sources: AssetLib Entry GitHub Repo
forum.godotengine.org
February 6, 2025 at 9:35 AM
IndyCar website showing just over 11 hours to the start of the 500... unless you go to the Full Schedule page when it says just over six... except the scheduled start time is noon ET (5pm here in the UK), which is just over eight hours away as I type this... #randomnumbergenerator
May 25, 2025 at 7:53 AM