this post was submitted on 19 Jan 2024
42 points (97.7% liked)

Game Development

4781 readers
1 users here now

Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.

Community Wiki

founded 2 years ago
MODERATORS
top 6 comments
sorted by: hot top controversial new old
[–] SatanicNotMessianic@lemmy.ml 15 points 2 years ago (1 children)

7 is the most random number, because when you ask someone to choose a random number between 1 and 10, most people choose 7.

Whenever you need a random number in your code, don’t use rand() or a similar function. Use 7. It’s faster, and it’s the choice of the people.

[–] sus@programming.dev 2 points 2 years ago

// guaranteed to be random

[–] TheLongPrice@lemmy.one 2 points 2 years ago (1 children)

This is cool! Is it your blog?

[–] mac@programming.dev 6 points 2 years ago* (last edited 2 years ago)

Nah not mine, just one I found and thought was pretty cool. Added the source to my rss reader and probably gonna post more from them in the future

[–] Spzi@lemm.ee 2 points 2 years ago

That's a very long list of different techniques with examples, very cool!

Though I wonder, is there some connection to image processing, high dynamic range?

Or audio compression, the kind which brings out the kick in the mix, not the kind which saves disk space?

The similarity I see between all three fields is, they try to bring down extreme values, outliers, to level the field, while still retaining characteristics.

[–] huntrss@feddit.de 1 points 2 years ago

I found this article also very interesting: https://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/

It focusses more or less on one sequence but provides use cases and in-depth knowledge