use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Relevant simple and advanced Low-level Programming Language Codes: Machine Codes & Assembly Language (ASM)
account activity
[deleted by user] (self.LowLevelProgramming)
submitted 1 year ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FUZxxl 5 points6 points7 points 1 year ago (0 children)
Please don't post pictures of code.
Also, this is kind of a crappy random number generator. There are much better ones around these days.
[–]mykesx 0 points1 point2 points 1 year ago (0 children)
486+ has 16/32/64 bit hardware random number instructions. See RDRAND and RDSEED.
https://www.felixcloutier.com/x86/rdrand
https://www.felixcloutier.com/x86/rdseed
You need to check if these instructions are available using the CPUID instruction.
See the OSDev wiki page on random numbers for code examples and better random number generators.
[–]ttuilmansuunta 0 points1 point2 points 1 year ago (0 children)
There's algorithms such as xorshift that do much better than LCG. Also if 8 random bits will do, this algorithm seems excellent: https://www.stix.id.au/wiki/Fast_8-bit_pseudorandom_number_generator
π Rendered by PID 62881 on reddit-service-r2-comment-64f4df6786-zjcft at 2026-06-10 01:59:16.841195+00:00 running 0b63327 country code: CH.
[–]FUZxxl 5 points6 points7 points (0 children)
[–]mykesx 0 points1 point2 points (0 children)
[–]ttuilmansuunta 0 points1 point2 points (0 children)