#PRNG

"One Number Repeated Forever: RNG in NSMB"

Apparently the coders for Nintendo Super Mario Brothers took a tried-and-true pseudo random number generator and tweaked it a little. Turns out this made it a lot worse.

roadrunnerwmc.github.io/blog/2

#prng #programming #nsmb #algorithms

2026-01-12

This is probably an unexpected interpretation of #genuary12, "Boxes Only", but I like how it turned out. Thinking of different uses of the term "box" in mathematical contexts, somehow I recalled the Box-Muller transformation, named after George E. P. Box and Mervin Muller, used to convert uniformly-distributed random numbers into a normal distribution. This is a visualization of the Box-Muller transform (which includes some rectangular boxes in there for good measure).

#genuary #genuary2026 #boxmuller #prng #randomvariate #randomnumber

Thin yellow and purple lines radiate from a central square, ending in small circles. The lines form the diagonal of faint thin gray rectangles.
2025-11-04

Một nhà nghiên cứu đang tìm kiếm sự quan tâm đến phương pháp chọn tham số toán học của họ. Phương pháp này giúp chọn độ dài dãy, modulo, hoặc tham số generator cho các điều kiện 2^A≡1 (mod p^t). Ứng dụng trong thiết kế PRNG, căn chỉnh scrambler, và số học trường residue. Họ sẵn sàng xác minh kết quả cho các cặp (p, t) và chấp nhận thách thức tính toán phức tạp.

#mathematics #algorithm #PRNG #parameterSelection #verification #coding #python #optimization #computationalMath #research #verified #p

2025-10-26

I was inspired to take a look at the PICO-8 RNG by some of the #RoguelikeCelebration talks, and it looks like it is unfortunately Not Good: lexaloffle.com/bbs/?pid=81103 #pico8 #prng

2025-10-24

Is 42 a "good" random seed? I know I have used it a lot in various stackoverflow posts. But this can indeed have a negative effect on people and *especially* LLMs using the example code as Claus Wilke is arguing here
blog.genesmindsmachines.com/p/
and here
blog.genesmindsmachines.com/p/

I like the idea to create random random seeds and inform the user about it to enable reproducability. I might incorporate that into {dqrng}.

#random #PRNG #RStats #dqrng

2025-09-16
2025-06-05

Новый кандидат в односторонние функции для криптографии и PRNG

В мире криптографии и безопасных вычислений постоянно ищутся новые, надёжные математические структуры. Традиционные подходы часто опираются на классические алгебраические группы, но что, если нестандартные операции могут предложить уникальные свойства для построения защищённых систем? В этой статье я хочу предложить вашему вниманию полилинейные функции с линейными сдвигами и рассмотреть их потенциал для обмена ключами и создания криптографических примитивов, таких как хеш-функции и генераторы псевдослучайных чисел.

habr.com/ru/articles/915928/

#односторонняя_функция #генератор_псевдослучайных_чисел #хешфункции #обмен_ключами #diffiehellman #prng #шифрование

Hacker Newsh4ckernews
2025-05-10

LoopMix128 – Fast C PRNG (.46ns), 2^128 Period, BigCrush/PractRand Pass

github.com/danielcota/LoopMix1

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2025-04-15

About the #random thingie ... I need random data in #swad to generate unpredictable #session IDs.

I previously had an implementation trying the #Linux-originating #getrandom if available, with a fallback to a stupid internal #xorshift #PRNG, which could be disabled because it's obviously NOT cryptographically secure, and WAS disabled for the generation of session IDs.

Then I learned #arc4random is available on many systems nowadays (#FreeBSD, #NetBSD, even Linux with a recent-enough glibc), so I decided to add a compile check for it and replace the whole mess with nothing but an arc4random call IF it is available.

arc4random originates from #OpenBSD and provides the only sane way to get cryptographically secure random data. It automatically and transparently (re-)seeds from OS entropy sources, but uses an internal CSPRNG most of the time (nowadays typically #ChaCha20, so it's a misnomer, but hey ...). It never fails, it never blocks. It just works. Awesome.

Gea-Suan Lingslin@abpe.org
2024-12-17

從 Dart 的 PRNG 問題學一些經驗...

從 Lobste.rs 上看到的文章,在講 Dart 的 PRNG 問題:「Far From Random: Three Mistakes From Dart/Flutter's Weak PRNG」。

主要的經驗有兩組,第一個是 PRNG 與 CSPRNG 的差異,後者保證了難以預測的特性 (cryptographically

blog.gslin.org/archives/2024/1

#Computer #Murmuring #Programming #Security #Software #cryptography #csprng #dart #entropy #flutter #prng #random #security #seed

Gonçalo Valériodethos@s.ovalerio.net
2024-12-12

"Far From Random: Three Mistakes From Dart/Flutter's Weak PRNG"

zellic.io/blog/proton-dart-flu

#security #cybersecurity #infosec #prng

2024-11-30

Beating Pokemon Platinum Comprehensively
Obsession is simultaneously a wonderful and a terrible thing. Wonderful to behold from outside, awful to experience from within.

What kind of obsession produces an effort, not just to complete Pokemon Platinum, which after all was sold to kids with the expectation that they would be able to
setsideb.com/beating-pokemon-p
#retro #gamefreak #nintendo #nuzlocke #pokemon #PokemonPlatinum #PRNG #retro #video #youtube

2024-08-15

What’s So Random About Ms. Pac-Man
I'm not going to say that famously Ms. Pac-Man is a more random game than Pac-Man, because who really knows things like that who isn't a hardcore gamenerd. But among hardcore game nerds, it's common knowledge. (If you didn't know, A. congrats on your coolness, and B
setsideb.com/whats-so-random-a
#retro #ballymidway #mspacman #namco #PRNG #randomness #retro #retrogamemechanicsex #retrogamemechanicsexplained #RNG #video #youtube

Josué Boisvert :raylib:greenmoonmoon@mastodon.gamedev.place
2024-06-12

I was somewhat aware that a lot of literature had been written on #random number generation... but trying to get clean random number in #C lead me into a way deeper rabbit hole than I anticipated!
I'm not understanding half of what I'm reading but I'm becoming increasingly paranoid about my poor generated numbers!
#prng

Dantali0n :arch: :i3:dantalion@fosstodon.org
2024-03-30

In my journey to quantify the numerical error of my personal and several open source #FFT algorithms I have created a scaled pseudo random number generator with arbitrary precision floating point numbers. Here is a histogram of several ranges when the #PRNG output is scaled to be within -0.5 and 0,5

Histograms to demonstrate the uniformity of a random number generator that supports arbitrary precision floating point numbers.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst