All pastes #433457 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-10 20:22 UTC
rendered paste body
 #include <stdio.h> 
 #include <stdlib.h> 
 #include <time.h> 
  
 int main(void) 
 { 
      srand( time(NULL)); 
  
 int rollDice(void); 
 int expected[SIZE]={0,0,1,2,3,4,5,6,5,4,3,2,1}; 
 for (int i=2;i<=12;i++) 
 { 
      printf(".3f%",(expected[i]/36)*100); 
 } 
 int rollDice(void) 
 { 
      int die; 
      die = 1 + ( rand() % 6); 
      return die; 
 } 
 printf("%d\t%d\t%.3f%\t%.3f%",i,actual[i],expected[i]/36.0*100,actual[i]/36000.0*100);