Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Random Algebra

Name: Anonymous 2016-08-05 16:07

Given functions
f(a,b) = random(a) < random(b)
and
g(a,b) = a < random(a+b)

which if of them is more likely to result into 1, if random(n) returns arbitrary number in range of [0;n)?

Justify your answer.

Name: Anonymous 2016-08-07 19:23

>>41
so they're equal?

Yes, I think it's definitely equal. random(a+b) is always some very small number (<1) above random(a)+random(b) but that's probably an artifact of the pseudorandom number generator.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List