Impractical Random Number Generators | Useless Game Dev

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 72

  • @GreenMonkeySam
    @GreenMonkeySam 8 месяцев назад +34

    Tamagotchi: "What's my purpose?"
    UGD: "You generate pseudo-random numbers"
    Tamagotchi: "Oh my god"

  • @dorkyface
    @dorkyface 8 месяцев назад +62

    One of my favorite cyber security things I watched a video on ages ago had a camera pointed at a wall of lava lamps. Convert the pixels of the current image to a string of numbers and bam- non deterministic random numbers :D

    • @dinhero21
      @dinhero21 8 месяцев назад +16

      I belive cloudflare does that

    • @redo1122
      @redo1122 8 месяцев назад +8

      yep, they use that for certificates

    • @alexanderrosulek159
      @alexanderrosulek159 8 месяцев назад +1

      I feel like now a days with physics ai someone could actually figure it out, definitely would need the lamp tho cuz they vary slightly and that ends up in in big changes

    • @redo1122
      @redo1122 8 месяцев назад +6

      @@alexanderrosulek159 you cannot predict perfect frames, simply because of the amount of factors that go into a single picture made by a camera. you could maybe estimate the flow of the lava lamps, but the individual pixels could never be the same.

    • @alexanderrosulek159
      @alexanderrosulek159 8 месяцев назад

      @@redo1122 ahh your right I see but if it was a true real lava physics simulator surely they could just use that pixeled data with an offet in a function till it finds one which flows the same as well, all hypothetical of course it would be very very hard and computational intensive running a real true physics for each instance in the offset data to find the true flow from the initial state

  • @forbiddengod1
    @forbiddengod1 8 месяцев назад +11

    Ok, usually the videos here do not deserve the channel name, with being actually pretty useful in understanding how things work and all. But this one perfectly fits the channel name :)
    Do not get me wrong, it is super fun, just different from what I expected.

  • @PaulFisher
    @PaulFisher 8 месяцев назад +11

    it’s ingenious how you used Cute Cat Creature Pals to generate a Useless Source of Statistical Randomness

  • @Wolforce
    @Wolforce 8 месяцев назад +35

    No antenna to catch cosmic background radiation?

    • @uselessgamedev
      @uselessgamedev  8 месяцев назад +19

      Brownian noise detector would have been pretty sick

    • @VJK102
      @VJK102 8 месяцев назад +3

      An analog radio/tv antenna getting static and a dac would ve an interesting one indeed

  • @mikoajstruzykowski9399
    @mikoajstruzykowski9399 8 месяцев назад +14

    My favourite way of getting random number in C is accesing memory that I didn't allocate, casting that to int value and useing modulo range+1

    • @onetoomany671
      @onetoomany671 8 месяцев назад +4

      Thanks, I hate it.

    • @icoudntfindaname
      @icoudntfindaname 6 месяцев назад

      Random number generator with a chance of segfault

  • @sempersolus5511
    @sempersolus5511 8 месяцев назад +3

    This is the first _actually_ useless game dev video I've seen on this channel.
    I still learned plenty tho

  • @mkks4559
    @mkks4559 8 месяцев назад +12

    5:20 If the video gets removed for some reason, we'll know that's actually what they do to generate random numbers.

  • @NoseborN
    @NoseborN 8 месяцев назад +32

    That's a nice idea for a project, coming with the most impractical random number generator.

    • @PopeGoliath
      @PopeGoliath 8 месяцев назад +5

      Reserve a bit in memory. Set it to zero. Continuously read from this bit, counting clock cycles. Wait until a gamma ray flips the bit. Use the parity of the recorded wait time to generate a random 1 or a 0. Repeat until your have enough random bits to create the int or float you need.

    • @TobiasSample
      @TobiasSample 8 месяцев назад

      There’s a video by sucker pinch that explains how to make utterly terrible, amazing storage drives lol
      ruclips.net/video/JcJSW7Rprio/видео.htmlsi=zGMoCvzZhwNWKtC0

    • @Mr.MasterOfTheMonsters
      @Mr.MasterOfTheMonsters 8 месяцев назад +1

      Build a neutrino detector and use the time and coordinates of each detection.

  • @InfiniteCoder01
    @InfiniteCoder01 8 месяцев назад +23

    Did we just get a 3d printing and engineering content on this channel?

    • @uselessgamedev
      @uselessgamedev  8 месяцев назад +16

      Anything can happen as long as it's unexpected. I'm the Cerveza Cristal of game dev

  • @nati0598
    @nati0598 8 месяцев назад +4

    I think that both the die bot and twitter bot can be improved by performing their action before the game asks for the state. Of course, that would make the result visible before it is used, but the strangers on the internet will definitely help you hide it when you need it most.

  • @His-Games
    @His-Games 7 месяцев назад

    This is too good. The enslavement was my favourite part, closely followed by unexpectedly becoming an engineering video

  • @jivejunior8753
    @jivejunior8753 8 месяцев назад +3

    You can make these practical by having the "impractical" number generators maintain a queue of, say, 6 random numbers. Then you don't have to wait for them! That was the only impractical feature of these generators, right?

  • @sky01james28
    @sky01james28 8 месяцев назад +2

    Who here remembers Trouble? It’s a board game similar to Sorry with a popping dice contraption in the middle

  • @someidiot6359
    @someidiot6359 8 месяцев назад

    Immediately one of my favorite videos on this channel

  • @FriedMonkey362
    @FriedMonkey362 3 месяца назад +1

    I love this video, i have watched it like 3 times

  • @richbuilds_com
    @richbuilds_com 8 месяцев назад

    This was a lot of fun to watch. Good stuff!

  • @AntonCastro44
    @AntonCastro44 8 месяцев назад +1

    "Cute Cat Creature Pals, or CCCP for short", I see what you did there...

  • @0hellow797
    @0hellow797 8 месяцев назад

    When working on microcontroller arduino projects, generally a pin that isn’t grounded can give good random number entropy,

  • @NirielWinx
    @NirielWinx 8 месяцев назад

    Wow. The Doom RNG is pretty much XKCD 221.
    Also, a few years ago, my gf and I cooked a bunch of dishes from Skyrim for a week. That was fun.

    • @uselessgamedev
      @uselessgamedev  8 месяцев назад

      Yeah, guaranteed random

    • @NirielWinx
      @NirielWinx 8 месяцев назад

      ​@@uselessgamedev> But on a serious note, it's not stupid. True randomness doesn't feel random to people. Look at the number of people who get infuriated when their XCom soldier misses three times in a row, while the enemy gets three critical hits.
      So, a way to alleviate that is to use a bag. Put all your numbers in it, and pull one at a time, don't put them back in the bag. When it's empty, refill it. You end up with a much more homogeneous distribution with fewer clusters. If you pull a lot of bad numbers, the bag will have only good numbers in it so you are guaranteed to draw good numbers now. It's not true randomness, but it feels more random/fair to silly humans who don't understand stats.
      Or you can go the Final Fantasy way, and just lie. People think 80% chance of hitting means "pretty much always", so the game writes 80% on the UI, but internally it's like 95%.
      But because some games use the bag method, or just lie, when players encounter an honest game, they complain about the RNG.
      Anyway, look at that old Tom Scott video entitled "The Lava Lamps That Help Keep The Internet Secure". It's a very cute implementation and quite similar to your tamagochis.

  • @Troyseph
    @Troyseph 8 месяцев назад +2

    Can you do a video on the quality of the random numbers generated by the tamagochis?

    • @uselessgamedev
      @uselessgamedev  8 месяцев назад +2

      Someone suggested this in the discord but tbh I wouldn't know how to evaluate that (and I'm not too keen on spending time learning this haha)

    • @Troyseph
      @Troyseph 8 месяцев назад

      @@uselessgamedev I believe as a rough gauge you can use the numbers generated to create an image, and you can visually see the "quality" in the patterns that appear (when there shouldn't be any)

    • @a52productions
      @a52productions 6 месяцев назад

      A simple but important test is to check whether the results mod N are evenly distributed for various N (ie, there are about as many evens as odd, about as many numbers that are 1 mod 3 as 2 or 0 mod 3, etc.)
      This isnt an exhaustive test by any means, but it's a good starting point as the bare minimum. A lot of applications depend on having numbers evenly distributed mod some other number.
      For further tests, there's the Diehard and BigCrush suites. These are preimplemented suites of tests to evaluate PRNGs based on the statistical processes of random sequences. You could just run those suites, or pick out some of the easier tests to run yourself.

  • @RasmusKristofferPedersen
    @RasmusKristofferPedersen 8 месяцев назад

    The dice'o'matic used by gamesbyemail might interest you: ruclips.net/video/7n8LNxGbZbs/видео.html
    Huge machine rolling loads of dice, in order to have real dice-results for use in online boardgames!

  • @behnamsaeedi
    @behnamsaeedi 8 месяцев назад

    Love the video, I do recommend increasing the output volume. difficult to hear the audio.

  • @ariorick
    @ariorick 8 месяцев назад +1

    - Show me your idea
    - Well look, you move on arrows and jump on...
    - Sorry I meant Id

    • @ariorick
      @ariorick 8 месяцев назад +1

      Sorry I'm high so no judgment

  • @Polychronius
    @Polychronius 8 месяцев назад

    Well, someone has to drop the Von Neumann quote... 🙃"Anyone who attempts to generate random numbers by deterministic means is, of course, living in a state of sin."

  • @neorack
    @neorack 8 месяцев назад

    Hehehe I recognize that music. I wonder if you played Akaburs work. heheheh ^^

  • @PaigeVG1995
    @PaigeVG1995 7 месяцев назад

    Hey, you just started showing up in my feed and I've found your videos very interesting and useful. It's good stuff! 👍Which, is why your name rubs me the wrong way... Useless game dev? 🤔 I don't think what we're doing here is useless, why do you?

  • @rikarddotzler8424
    @rikarddotzler8424 8 месяцев назад

    Do more videos of more random number ideas!!

  • @kio2811
    @kio2811 8 месяцев назад

    Feels like when you type a random Minecraft seed

  • @TankorSmash
    @TankorSmash 8 месяцев назад +2

    I appreciate you blurring out your username in the terminal but leaving it visible in the window title

    • @uselessgamedev
      @uselessgamedev  8 месяцев назад +1

      Ah rookie mistake

    • @TankorSmash
      @TankorSmash 8 месяцев назад

      I think we've all been there!@@uselessgamedev

    • @ScriptCoded
      @ScriptCoded 8 месяцев назад

      ​@@TankorSmash I for one have not had any reason to have that issue 😅

    • @TankorSmash
      @TankorSmash 8 месяцев назад

      Screencasting is a risky sport!@@ScriptCoded

  • @akshatmishra5527
    @akshatmishra5527 8 месяцев назад +1

    Lets use lava lamps

  • @ArthurWolf
    @ArthurWolf 8 месяцев назад

    Imagine being so impatient you post your April's fools video 10 days in before April 1st....

  • @aidanmason3493
    @aidanmason3493 8 месяцев назад

    nice

  • @mr.fraiche8635
    @mr.fraiche8635 8 месяцев назад

    Idk why you didn’t just use a funnel and escalator like system

    • @uselessgamedev
      @uselessgamedev  8 месяцев назад +1

      Yes that was one of the "easy" methods (could also have mounted the whole box on a motor and rotated that) but I tried to go for "spectacle". Should probably have stuck with something that was guaranteed to work

    • @mr.fraiche8635
      @mr.fraiche8635 8 месяцев назад

      @@uselessgamedev a very entertaining “spectacle”, I love your videos and hope you keep doing interesting things like this

  • @redo1122
    @redo1122 8 месяцев назад +1

    your video is kinda similar to a video called harder drives. At least the idea is

    • @uselessgamedev
      @uselessgamedev  8 месяцев назад

      Definitely! As stated in the description

  • @LeonardoTx1000
    @LeonardoTx1000 8 месяцев назад

    Volume is very low :(

  • @heavygaming6596
    @heavygaming6596 8 месяцев назад

    algorithm

  • @cool.guy.
    @cool.guy. 8 месяцев назад

    it's X now :)

  • @JanTuts
    @JanTuts 8 месяцев назад +2

    1:26 OUR virtual pet