Skip to main content

Timeline for Make it rain characters

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Jan 31, 2020 at 0:37 comment added targumon @Arnauld Not just in theory. It is possible to get 0. Extremely small chance, but still positive. I wrote a post about it: dev.to/targumon/how-does-math-random-work-1526
Apr 14, 2019 at 1:42 comment added nedla2004 @Arnauld That makes sense, I agree that defining the language by what it does makes this dubious at best.
Apr 13, 2019 at 23:31 comment added Ferrybig For what platform did you make your javascript for? Since the challenge has a uniqueness requirement, and does not specify a max input, this really matters, as most platforms are using a math.random() implementation that has an internal state, and thus cannot generate unique output.
Apr 13, 2019 at 10:34 comment added Arnauld @nedla2004 In theory, yes. In practice, I think it's very likely that the implementation(s) of the PRNG can't possibly return exactly \$0\$ (let alone close enough \$0\$'s so that all configurations actually have a chance to occur). Because we define a language by its implementation, I personally think it's therefore invalid.
Apr 13, 2019 at 2:30 comment added nedla2004 Google says that Math.random() returns a number in [0, 1), so couldn't Math.random()<.5 become Math.random()>0?
Apr 12, 2019 at 14:15 comment added Arnauld @orthoplex That wouldn't work because (0|'A') === (0|undefined) and the remaining letters would not be guaranteed anymore to appear on the last row. (So, basically, it's just like |!a[y+1] was removed altogether.)
Apr 12, 2019 at 14:12 comment added orthoplex I think you could save one byte by not negating the ternary expression.
Apr 12, 2019 at 13:58 history answered Arnauld CC BY-SA 4.0