Posted 31 December 2012 - 12:26 AM
Im going to make some private dice game. I will not share code. Numbers are 1-6.
Question 1: 3 Random numbers, How can i detect how many of those are example 1 and make result as variable? 2 1 1 (variable is: 2) in this condition.
Question 2: 3 Random numbers, How can i detect that the numbers are 1, 2 and 3 in whatever order, result as variable again. like 1 2 3, 2 3 1, 2 1 3
Question 3: 10 Random numbers, How can i detect that 5 of them are all the same number from 1-6, result as variable. like 1 1 1 1 1 2 3 4 5 6
Question 4: 6 Random numbers, How can i detect that there is 2 same numbers and 2 different same numbers like (2 2 4 4) 2 5
I hope i get good answers. I hope you understand me.
Question 1: 3 Random numbers, How can i detect how many of those are example 1 and make result as variable? 2 1 1 (variable is: 2) in this condition.
Question 2: 3 Random numbers, How can i detect that the numbers are 1, 2 and 3 in whatever order, result as variable again. like 1 2 3, 2 3 1, 2 1 3
Question 3: 10 Random numbers, How can i detect that 5 of them are all the same number from 1-6, result as variable. like 1 1 1 1 1 2 3 4 5 6
Question 4: 6 Random numbers, How can i detect that there is 2 same numbers and 2 different same numbers like (2 2 4 4) 2 5
I hope i get good answers. I hope you understand me.