Displaying 2 results from an estimated 2 matches for "die1".
Did you mean:
die
2010 Oct 05
3
R-help
Im trying to simulate the rolling of a pair of dice
this is my function:
#function to simulate tosses of a pair of dice
#from the simulation, the program returns the empirical probability of
#observing a double
count <- 0
for(j in 1:sim){#begin loop
die1 <- sample(1:6,1)
print(die1)
die2 <- sample(1:6,1)
print(die2)
count <- ifelse(die1 == die2, count + 1, count)
}#end loop
emprob <- count/sim
return(count,emprob)
} #end program
these are the errors that keep coming up:
Error in 1:sim : 'sim' is missing
How do I correct th...
2012 Jun 09
2
Help getting Torchlight 2 Beta running (Mac)
...lowest weighted assignments beyond this limit have been removed, so your animation may look slightly different. To eliminate this, reduce the number of bone assignments per vertex on your mesh to 4.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
Skeleton: Loading MEDIA/MODELS/NPCS/EST_F/DIE1.SKELETON
Skeleton: Loading MEDIA/MODELS/NPCS/EST_F/ENVI_ALERT_DIE1.SKELETON
Skeleton: Loading MEDIA/MODELS/NPCS/EST_F/ENVI_IDLE_DIE1.SKELETON
Skeleton: Loading MEDIA/MODELS/NPCS/EST_F/ENVI_IDLE_TOWN1.SKELETON
Skeleton: Loading MEDIA/MODELS/NPCS/EST_F/ENVI_IDLE_TOWN2.SKELETON
Skeleton: Loading MEDIA...