Hacker News new | ask | show | jobs
by Eriks 1742 days ago
b, e, g, h are random number from 1 to 3

Math.floor(Math.random() * 3) + 1

edit: b, e, g, h are different segments included. So all unique segments are in these videos:

blue-a-b1-c0000-d-e1-f-g1-h1-i 1f3dbdfd6a7c3d574b6b9eb8d07a3567.mp4

blue-a-b2-c0000-d-e2-f-g2-h2-i 241eb47071c89d8f18b0948763d6389a.mp4

blue-a-b3-c0000-d-e3-f-g3-h3-i 498ec3ba6719291e77b2a8870c744bdf.mp4

red-a-b1-c0000-d-e1-f-g1-h1-i ea2222b8b7a5c72396f76d65cf56890a.mp4

red-a-b2-c0000-d-e2-f-g2-h2-i bac726340f5486d9e02942c243e5b56b.mp4

red-a-b3-c0000-d-e3-f-g3-h3-i ce1aef26388b49562eab495b597e8fbc.mp4

1 comments

Oh, so you’re saying that there are only 3 unique video segments, but you might get a 1..3 random number for all b, e, g and h arguments…?

So 1440 per-minute videos * 2 pill colors (red/blue) * 3^4 segments (1..3 values for each b, e, g, h argument) * 2 video qualities (high/low)!

3 different segments per key/argument, 4 keys/arguments, 2 colors = only 24 random segments inserted
Sorry do you mean that not all b, g, etc. argument values are possible?

So b1 g2 for example might be possible, but b2 g1 might not exist?

i.e. are values truly random / uniformly distributed?

any combination is possible but, e.g., all blue videos with g3 will have same g segment.
Makes sense, thanks!