I have a school assignment that I would like to get done, however, I have issues trying to reach my teacher during the holidays.
I'm supposed to check if I drop 100 sandwiches how many of them will fall the right way up?
I have a slider where I can change my % value, but I'm not sure how I would do the calculation. Id assume I would do this in a for loop I have a slider where I get the Fortune value called: FortuneValue
![[Image: Yjh0k.png]](https://i.stack.imgur.com/Yjh0k.png)
I'm supposed to check if I drop 100 sandwiches how many of them will fall the right way up?
I have a slider where I can change my % value, but I'm not sure how I would do the calculation. Id assume I would do this in a for loop I have a slider where I get the Fortune value called: FortuneValue
![[Image: Yjh0k.png]](https://i.stack.imgur.com/Yjh0k.png)
PHP Code
<?php
int rightWay = 0;
int wrongWay = 0;
int tries = Convert.ToInt32(Tries.Text);
for (int i = 0; i < tries; i++)
{
}


