[{"data":1,"prerenderedAt":865},["ShallowReactive",2],{"project-14805265":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":35,"aspects":36,"strip":45,"post_text":49,"what":50,"said":82,"maker_in_thread":154,"shape":164,"grid":168,"attempts":827,"same_week":828,"maker_shows":18,"maker_hidden":857,"reader_version":858,"card":859},"14805265","gamblers-dice","A Set of Dice That Follows the Gambler's Fallacy","title","Show HN: A Set of Dice That Follows the Gambler's Fallacy","https:\u002F\u002Fgithub.com\u002Fxori\u002Fgamblers-dice","github.com","xori",1500479940,2017,523,230,21,2242,1,"legend","languages","random number library","library",[24,25,26,27,28],"gambler's fallacy","weighted random","dice roller","node.js","pseudo random","curious",0.044,{"positive":32,"neutral":33,"mixed":34,"critical":32},11,49,0,71,{"idea":37,"design":40,"execution":41,"docs":43,"performance":44},{"positive":38,"critical":39},9,7,{"positive":34,"critical":18},{"positive":34,"critical":42},3,{"positive":18,"critical":34},{"positive":34,"critical":34},[46,42,47,47,42,18,18,42,48,42,42,34,34,18,46,34,34,34,46,47,42,18,34,42,34,34,34,34,34,34,34,42,42,42,34,46,46,42,47,48],5,4,2,null,{"problem":51,"audience":58,"pricing":49,"motivation":62,"time_to_build":49,"stack":66,"openness":79,"stage":80,"team_size":81},{"value":52,"source":53,"evidence":54},"Random rolls feel broken because streaks happen, so players distrust them.","maker",[55],{"id":56,"by":11,"text":57},"14805489","I made this specifically for my online D&D sessions. I can tell you that nobody was suspicious when I replaced the standard Math.random() with this version, and all of the \"I…",{"value":59,"source":53,"evidence":60},"Game developers and tabletop players running online D&D sessions.",[61],{"id":56,"by":11,"text":57},{"value":63,"source":53,"evidence":64},"Built for online D&D sessions to stop players complaining about broken dice.",[65],{"id":56,"by":11,"text":57},[67],{"value":68,"source":69,"evidence":70},"JavaScript (Node.js)","commenter",[71,75],{"id":72,"by":73,"text":74},"14809851","18nleung","How exactly does the roll() method work? Can't seem to parse the meaning of `runningSum` and `mark`. ``` roll() { const sum = this.state.reduce((p, c) => p + c, 0) const r =…",{"id":76,"by":77,"text":78},"14810907","biafra","How do I run this code? I thikn I succesfully installed the package with npm. There were some warnings but no error. But how do I run: > const RiggedDie =…","open_source","launched","unknown",{"praise":83,"objections":106,"requests":114,"questions":122,"alternatives":128},[84,99],{"value":85,"source":69,"evidence":86},"Useful for games and RPGs that want fairer-feeling randomness.",[87,91,95],{"id":88,"by":89,"text":90},"14806533","Sawamara","This is actually useful for many rpg games.",{"id":92,"by":93,"text":94},"14811654","mysterydip","This will be great for game developers as many a player has complained that the RNG wasn't \"fair\" because they got so many fails in a row or never saw a critical hit or whatever,…",{"id":96,"by":97,"text":98},"14822132","emodendroket","This actually seems like it would be pretty good for applications like games or playing random songs.",{"value":100,"source":69,"evidence":101},"Clever idea; Polya urn style model explained.",[102],{"id":103,"by":104,"text":105},"14805939","andy_wrote","There's a probability model called the Pólya urn where you imagine an urns containing numbered balls (colored balls in a typical example, but to draw the comparison with dice we…",[107],{"value":108,"source":69,"evidence":109},"Dice that are not independent is a questionable goal; real dice cannot do this.",[110],{"id":111,"by":112,"text":113},"14807142","mighty_bander","Pshaw. Make real dice that do that and I'll get excited.",[115],{"value":116,"source":69,"evidence":117},"Physical dice that follow the gambler's fallacy.",[118],{"id":119,"by":120,"text":121},"14805709","bigato","Now I really want physical loaded dice which follow the gambler's fallacy! Is it too crazy of an idea?",[123],{"value":124,"source":69,"evidence":125},"How to run the package and the roll method logic.",[126,127],{"id":72,"by":73,"text":74},{"id":76,"by":77,"text":78},[129,136,147],{"value":130,"source":69,"evidence":131},"Tetris bag randomizer.",[132],{"id":133,"by":134,"text":135},"14807287","vanderZwan","A similar, simpler idea is sometimes used in games: you put all choices in a \"bag\", then draw from the bag until it's empty, then put everything back. Tetris is the go-to…",{"value":137,"source":69,"evidence":138},"Dota 2 pseudo-random distribution.",[139,143],{"id":140,"by":141,"text":142},"14809363","onetwotree","Video games, especially competitive ones, do this to limit the effect of randomness on the outcome of the game, while still keeping the sequence of random events unpredictable…",{"id":144,"by":145,"text":146},"14805441","nerdponx","This \"unfair RNG\" issue was big in Dota 2 (a popular video game) for a while. They ultimately implemented something similar and AFAIK now all \"random\" effects use it.",{"value":148,"source":69,"evidence":149},"Hearthstone pity timer.",[150],{"id":151,"by":152,"text":153},"14809538","smallnamespace","This shows up a lot (predictably) in actual games, e.g. Hearthstone sells you digital cards, and the randomization specifically guarantees that the time between rare cards is…",{"comments":155,"answered":42,"key":156},8,[157,160,161],{"id":158,"text":159},"14805958","Thank you! Sometimes the hardest thing is knowing what to google!",{"id":56,"text":57},{"id":162,"text":163},"14806100","Oh my god, you totally could use reaction wheels. https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=n_6p-1J551Y",{"commenters":165,"max_depth":38,"maker_replies":155,"first_comment_mins":166,"lifespan_hours":167},171,23,65,[169,171,173,177,180,183,186,190,193,197,200,202,205,207,211,214,217,220,223,226,229,233,237,240,243,246,249,252,255,259,263,266,268,271,274,278,282,285,288,291,294,297,299,302,305,308,311,313,316,318,321,324,327,330,333,336,339,342,346,349,352,355,357,360,363,365,368,371,374,377,379,382,385,387,390,393,396,398,401,404,407,410,412,415,418,421,424,427,430,433,435,438,441,444,447,450,453,456,459,462,465,467,470,472,475,478,480,482,483,486,489,490,492,495,498,501,504,507,510,512,515,517,519,522,525,528,531,533,536,539,542,545,547,550,552,554,557,560,563,566,568,570,573,576,579,583,586,589,591,593,595,597,599,602,604,606,610,613,617,620,623,627,629,632,634,637,639,642,644,646,648,651,653,655,657,659,662,665,668,670,673,675,677,681,684,688,691,695,697,701,702,706,708,710,713,715,717,720,723,725,727,730,733,735,737,740,743,747,752,756,760,762,766,770,773,777,781,785,789,791,796,799,802,806,808,812,816,820,823,825],[103,34,46,170,104,34],"project\u002Fpositive\u002Fidea",[158,34,34,172,11,18],"maker\u002Fpositive\u002Fnone",[174,34,34,175,176,34],"14806471","other\u002Fneutral\u002Fnone","duxup",[178,34,34,175,179,34],"14811113","CPLX",[181,34,34,175,182,34],"14806487","vinchuco",[184,34,34,175,185,34],"14807894","Grae",[187,34,42,188,189,34],"14806572","project\u002Fneutral\u002Fidea","dminor",[191,34,34,175,192,34],"14806948","femto113",[194,34,34,195,196,34],"14806569","other\u002Fneutral\u002Fidea","petschge",[198,34,34,175,199,34],"14806738","thaumasiotes",[201,34,34,175,196,34],"14807068",[203,34,42,188,204,34],"14807360","brchr",[206,34,42,188,104,34],"14808111",[208,34,46,209,210,34],"14810170","project\u002Fpositive\u002Fnone","Jaruzel",[212,18,42,188,213,34],"14805493","ideonexus",[215,18,34,175,216,34],"14805537","nxc18",[218,18,34,175,219,34],"14805560","abritinthebay",[221,18,42,188,222,34],"14805544","drewrv",[224,18,46,170,225,34],"14805556","Sholmesy",[227,18,42,188,228,34],"14805875","nkrisc",[230,18,34,231,232,34],"14810589","commenter\u002Fneutral\u002Fnone","stubish",[234,18,34,235,236,34],"14818875","commenter\u002Fcritical\u002Fidea","Tarq0n",[238,18,42,188,239,34],"14806320","cestith",[241,18,34,231,242,34],"14808685","gpawl",[244,18,42,188,245,34],"14807191","xg15",[247,18,34,175,248,34],"14807226","mulmen",[250,18,42,188,251,34],"14807414","Jasper_",[253,18,34,175,254,34],"14805572","michaelmcmillan",[256,18,18,257,258,34],"14805638","maker\u002Fcritical\u002Fdesign","Jackim",[260,18,34,261,262,34],"14805642","other\u002Fneutral\u002Fdocs","RugnirViking",[264,18,34,175,265,34],"14805680","feider",[267,18,34,175,254,34],"14806007",[269,18,42,188,270,34],"14805685","wodenokoto",[272,18,34,175,273,34],"14805801","c3534l",[275,18,18,276,277,34],"14806878","project\u002Fcritical\u002Fidea","surement",[279,18,18,280,281,34],"14805737","project\u002Fcritical\u002Fexecution","lwansbrough",[283,18,18,280,284,34],"14805811","fhood",[286,18,34,175,287,34],"14805951","ganonm",[289,18,34,231,290,34],"14806108","gt565k",[292,18,34,231,293,34],"14807000","hoschicz",[295,18,34,175,296,34],"14811609","GrantSolar",[298,18,42,188,270,34],"14805602",[300,18,42,188,301,34],"14805696","laumars",[303,18,42,188,304,34],"14805906","eterm",[306,18,34,175,307,34],"14806580","SAI_Peregrinus",[309,18,42,188,310,34],"14806362","pkulak",[312,18,34,175,301,34],"14806586",[314,18,42,188,315,34],"14807168","worldsayshi",[317,18,18,280,273,34],"14805791",[319,18,42,188,320,34],"14806053","jameshart",[322,18,42,188,323,34],"14806196","corpMaverick",[325,18,42,188,326,34],"14806574","bendykstra",[328,18,42,188,329,34],"14806348","munificent",[331,18,42,188,332,34],"14806419","BurningFrog",[334,18,42,188,335,34],"14806443","koolba",[337,18,34,235,338,34],"14806637","gpvos",[340,18,34,231,341,34],"14807563","Paul-ish",[343,18,34,344,345,34],"14809702","commenter\u002Fcritical\u002Fnone","Cogito",[347,18,42,188,348,34],"14807982","rcthompson",[350,18,34,175,351,34],"14808121","bryanlarsen",[353,18,34,231,354,34],"14808205","weaksauce",[356,18,34,175,348,34],"14810127",[358,18,34,231,359,34],"14817438","oliv__",[361,18,34,175,362,34],"14806450","legohead",[364,18,34,175,277,34],"14806899",[366,18,34,175,367,34],"14811656","madshiva",[369,18,34,175,370,34],"14806475","erikb",[372,18,34,175,373,34],"14806529","nathan_f77",[375,18,34,175,376,34],"14806715","mickronome",[378,18,34,175,373,34],"14806767",[380,18,34,175,381,34],"14807645","oe",[383,18,34,175,384,34],"14806863","gregmac",[386,18,34,231,245,34],"14807132",[388,18,34,175,389,34],"14812187","accountyaccount",[391,18,34,175,392,34],"14813011","hammock",[394,48,42,188,395,34],"14805455","Pfhreak",[56,48,34,397,11,18],"maker\u002Fneutral\u002Fnone",[399,48,18,276,400,34],"14806030","fenwick67",[402,48,34,175,403,34],"14809263","gerdesj",[405,48,18,276,406,34],"14805500","fiatjaf",[408,48,34,231,409,34],"14805613","betenoire",[411,48,34,231,406,34],"14806186",[413,48,46,170,414,34],"14805535","vslira",[416,48,34,175,417,34],"14806363","WorldMaker",[419,48,34,175,420,34],"14806462","talyian",[422,48,34,175,423,34],"14806824","morley",[425,48,34,175,426,34],"14806950","r1ch",[428,48,34,175,429,34],"14806898","DINKDINK",[431,48,34,231,432,34],"14806997","sillysaurus3",[434,48,34,231,429,34],"14807262",[436,48,34,175,437,34],"14812122","awodol",[439,48,34,175,440,34],"14806951","gozur88",[442,48,34,175,443,34],"14808877","joefkelley",[445,48,34,175,446,34],"14811376","tvararu",[448,48,34,175,449,34],"14809368","Iv",[451,48,34,175,452,34],"14810143","ianamartin",[454,42,34,175,455,34],"14806520","doodpants",[457,42,34,175,458,34],"14807048","cdelsolar",[460,42,34,175,461,34],"14807330","nfriedly",[463,47,34,175,464,34],"14806029","nickm12",[466,47,34,175,429,34],"14806842",[468,47,34,175,469,34],"14807745","andy_boot",[471,47,34,175,452,34],"14810202",[473,46,34,175,474,34],"14805790","cableshaft",[476,46,34,231,477,34],"14810042","hn_throwaway_99",[479,46,34,231,474,34],"14812431",[133,481,34,195,134,34],6,[119,39,46,170,120,34],[484,39,42,188,485,34],"14805733","pmiller2",[487,39,42,188,488,34],"14805946","Mister_Snuggles",[162,39,34,188,11,18],[491,39,34,175,488,34],"14806219",[493,39,46,170,494,34],"14806540","michaelbuckbee",[496,39,42,188,497,34],"14807195","default-kramer",[499,39,42,188,500,34],"14813146","pbhjpbhj",[502,39,42,188,503,34],"14805745","peteretep",[505,39,42,188,506,34],"14805841","kej",[508,39,42,188,509,34],"14805889","Vendan",[511,39,42,188,506,34],"14805971",[513,39,42,188,514,34],"14805798","chris_va",[516,39,42,188,506,34],"14805861",[518,39,34,188,11,18],"14805868",[520,39,18,276,521,34],"14809601","jpfed",[523,39,18,276,524,34],"14805897","Pxtl",[526,39,34,175,527,34],"14805921","jjnoakes",[529,39,34,175,530,34],"14806067","thefifthsetpin",[532,39,34,175,104,34],"14806172",[534,39,34,175,535,34],"14807075","pavel_lishin",[537,39,34,175,538,34],"14806469","acomjean",[540,39,34,175,541,34],"14806965","xeonoex",[543,39,34,175,544,34],"14807086","marcofiset",[546,39,34,175,524,34],"14807117",[548,39,34,175,549,34],"14807215","speeder",[551,39,34,175,500,34],"14813072",[553,39,34,175,549,34],"14815974",[555,39,34,175,556,34],"14807240","LeifCarrotson",[558,39,34,175,559,34],"14808012","hoytech",[561,39,42,188,562,34],"14805926","XaspR8d",[564,155,34,175,565,34],"14805710","hesdeadjim",[567,155,34,175,304,34],"14805938",[569,155,34,175,400,34],"14806217",[571,155,34,175,572,34],"14806387","lawtguy",[574,38,34,175,575,34],"14806908","Thespian2",[577,38,34,175,578,34],"14806916","cletusw",[580,581,34,175,582,34],"14805603",10,"kator",[584,581,34,175,585,34],"14805918","yathern",[587,581,34,175,588,34],"14808939","wpietri",[590,581,34,175,588,34],"14808953",[592,581,34,175,452,34],"14810262",[594,581,34,175,588,34],"14819794",[596,581,34,175,452,34],"14826117",[598,581,34,175,338,34],"14806589",[600,32,34,175,601,34],"14806221","closed",[603,32,34,397,11,18],"14806688",[140,605,34,175,141,34],12,[607,608,34,175,609,34],"14807004",13,"eriknstr",[611,608,34,175,612,34],"14809477","vacri",[614,615,34,175,616,34],"14805986",14,"root_axis",[618,615,34,175,619,34],"14806145","NelsonMinar",[621,615,34,175,622,34],"14809224","heartles",[624,625,34,175,626,34],"14805523",15,"_Marak_",[628,625,34,175,219,34],"14805574",[630,625,34,175,631,34],"14805669","boyce",[633,625,34,231,219,34],"14805857",[635,625,34,231,636,34],"14805712","robotresearcher",[638,625,34,231,219,34],"14805838",[640,625,34,231,641,34],"14806727","MereInterest",[643,625,34,231,219,34],"14807611",[645,625,34,231,641,34],"14808683",[647,625,34,231,219,34],"14810679",[649,625,34,231,650,34],"14807046","CryptoFascist",[652,625,34,231,219,34],"14807593",[654,625,34,231,636,34],"14809969",[656,625,34,231,219,34],"14810670",[658,625,34,231,636,34],"14813356",[660,625,34,231,661,34],"14805896","plus",[663,625,34,175,664,34],"14805576","tylerhou",[666,625,34,231,667,34],"14807411","guscost",[669,625,34,175,631,34],"14805649",[671,625,34,175,672,34],"14805660","godelski",[674,625,34,231,661,34],"14806242",[676,625,34,231,242,34],"14808661",[678,679,42,188,680,34],"14806550",16,"YCode",[682,679,34,175,683,34],"14806609","woodrowbarlow",[685,686,34,175,687,34],"14810560",17,"rivo",[689,690,34,175,370,34],"14806457",18,[692,693,42,188,694,34],"14807337",19,"methodin",[696,693,34,231,452,34],"14810317",[698,699,34,175,700,34],"14806473",20,"jonjonjonjon22",[151,16,42,188,152,34],[703,704,42,188,705,34],"14806437",22,"colanderman",[72,166,42,707,73,34],"project\u002Fneutral\u002Fdocs",[709,166,42,707,73,34],"14810030",[711,712,34,175,612,34],"14809465",24,[76,714,42,707,77,34],25,[144,716,34,175,145,34],26,[718,716,34,175,719,34],"14805465","Blackthorn",[721,716,34,175,722,34],"14805502","Quarrelsome",[724,716,34,175,145,34],"14805609",[726,716,34,175,406,34],"14805484",[728,716,34,175,729,34],"14805579","sloppycee",[731,716,34,175,732,34],"14806146","avisser",[734,716,34,175,262,34],"14805583",[736,716,34,175,612,34],"14809504",[738,716,34,175,739,34],"14805585","reificator",[741,716,34,175,742,34],"14805598","xzel",[744,745,46,170,746,34],"14805532",27,"careersuicide",[748,749,46,750,751,34],"14806446",28,"project\u002Fpositive\u002Fdocs","Tade0",[753,754,34,175,755,34],"14807436",29,"biesnecker",[757,758,42,188,759,34],"14806088",30,"dmartinez",[92,761,46,170,93,34],31,[763,764,34,175,765,34],"14806920",32,"dllthomas",[767,768,34,175,769,34],"14806547",33,"dcookie",[771,772,34,175,242,34],"14808636",34,[774,775,34,175,776,34],"14806438",35,"IncRnd",[778,779,42,188,780,34],"14805972",36,"exabrial",[782,783,34,175,784,34],"14807819",37,"zem",[786,787,42,188,788,34],"14807757",38,"snake_plissken",[96,790,46,170,97,34],39,[792,793,42,794,795,34],"14806830",40,"project\u002Fneutral\u002Fperformance","ProgrammerMatt",[797,793,34,798,11,18],"14807027","maker\u002Fneutral\u002Fperformance",[800,793,42,801,544,34],"14807152","project\u002Fneutral\u002Fexecution",[803,804,42,397,805,34],"14806094",41,"sebnap",[807,804,34,397,11,18],"14806183",[809,810,42,188,811,34],"14805433",42,"overcast",[813,814,42,188,815,34],"14807597",43,"mwexler",[817,818,18,276,819,34],"14805942",44,"andrepd",[821,818,34,822,11,18],"14806445","maker\u002Fneutral\u002Fidea",[111,824,18,276,112,34],45,[88,826,46,170,89,34],46,[],[829,834,839,844,849,853],{"id":830,"name":831,"points":832,"category":833},"14771406","Quilt",367,"data",{"id":835,"name":836,"points":837,"category":838},"14799111","Cinc",363,"productivity",{"id":840,"name":841,"points":842,"category":843},"14794949","choppingboard.recipes",208,"web_saas",{"id":845,"name":846,"points":847,"category":848},"14769317","Python books",150,"learning_science",{"id":850,"name":851,"points":852,"category":848},"14798336","Learn Anything",145,{"id":854,"name":855,"points":856,"category":848},"14763591","Language identification quiz",140,false,"v2",{"id":860,"name":5,"line":6,"ai":857,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":861,"top":18,"kw":862,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":863,"url":9,"mix":864,"praise":85,"objection":108,"sub":21},14805265,0.04,[24,25,26,27,28],"5344311323300150005431030000000333055342",[32,33,34,32],1794036557458]