April 24th, 2022 at 9:25:08 AM
permalink
Ive come across this term as of recently and now i cant stop seeing it.
If anyone knows what this is, and can potentially provide me with some pseudo code as to how it may be implemented i would appreciate it
to me it may be something like this
void generate() {
int result rand(0,100);
if result < 50 { do this }
if result > 50 { do that }
}
obviously this is supposed to represent a coin flip but it can have any code after the call to rand
EDIT: WOOPS
i thoroughly apologize i actually asked this question a long time ago
If anyone knows what this is, and can potentially provide me with some pseudo code as to how it may be implemented i would appreciate it
to me it may be something like this
void generate() {
int result rand(0,100);
if result < 50 { do this }
if result > 50 { do that }
}
obviously this is supposed to represent a coin flip but it can have any code after the call to rand
EDIT: WOOPS
i thoroughly apologize i actually asked this question a long time ago
Last edited by: heatmap on Apr 24, 2022