GGG Dev: How many lines of code use a random() function?
How many times do you call a random* function/class/other? Within all the code.
And about how many lines of code in poe? comments don't count. *pretty sure you have more than just rand(). so all/most of them combined. edit: if you have a function that calls random* and you use that function 484 times, add those 484 to the count aswell. no skimping on the numbers. extra respect if you can break it down into categories, like "8749 randoms for item generation, 28 randoms for terrain, and 3,849,228 randoms for item drops" etc. rawr. fear me. Last edited by tidbit#1299 on Apr 28, 2018, 8:26:55 PM Last bumped on Jul 16, 2018, 2:21:10 PM
|
![]() |
Considering the ammount of RNG we have on the game, i would say every single line of the code has it. :)
|
![]() |
" If not more. Life goes by like a fart in the wind.
|
![]() |
Do real programmers even use rand? All I was told during college was how bad rand was, but to use it because it's easy to grade
|
![]() |
" It's fine if you don't need cryptographic levels of uniformity. Plus, I'm pretty sure that the servers use the same rand() seed for all players (or at least lots and lots of players), so your personal RNG is also affected by what everyone else on the server is doing, which is an entirely separate level of randomness. |
![]() |
The days of bad random algorithms are mainly behind us. For games like this you don't need a great one... only one that doesn't produce predictable results.
Crazy levels of randomness like the ones that work off temperature or mouse positions aren't really important unless you're doing modeling for quantum research or something important like playing poker. |
![]() |
The obvious answer is TOO MANY TIMES.
"You've got to grind, grind, grind at that grindstone..."
Necessity may be the mother of invention, but poor QoP in PoE is the father of frustration. The perfect solution to fix Trade Chat: www.pathofexile.com/forum/view-thread/2247070 |
![]() |
Imagine this hell : from 0.0 through 1,000,000,000, items are set to a range of numbers (or a single number...) in the total rang, where when an instance of a drop occurs a number is randomly picked and the item at that slot is dropped.
...and each item, item range, or portion of an item range is randomly repositioned in that total range making getting items you need even worse than before. ...that's what GGG is doing. Or if it isn't, they have top men working on it as we speak. |
![]() |
Dude, what are you doing? this isn't reddit, you should know that devs only go on reddit nowadays, the forums is not even something they glance at anymore.
Twitch: twitch.tv/slayertip
Helping people with their builds, its somewhat a hobby, and a passion of mine, so don't be shy! https://www.pathofexile.com/forum/view-thread/1715639 <--- Build help forums thread thingy. |
![]() |
Radom is used only one time...
Launching PoE.exe immediately calls Random.bat to launch the game. |
![]() |