Probability-based gaming?

Started by heatmap 0 replies 1,979 views

heatmap
heatmap
  • 2,576 posts
  • Threads: 301
Joined: Feb 12, 2018
April 24th, 2022 at 9:25:08 AM #1
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
Last edited by: heatmap on Apr 24, 2022

Join the discussion

Log in or create a free account to reply to this thread.

  • Jump to: