All pastes #248849 Raw Edit

Mine

public java v1 · immutable
#248849 ·published 2006-11-15 02:15 UTC
rendered paste body
import java.util.*;public class RollDice{	public static Random R = new Random();	public static void main(String args[])	{		countLoop();	}		public static void countLoop()	{		if (rollLoop() == 1)			countLoop();	}		public static int rollLoop()	{		int[] d = new int[]{R.nextInt(6)+1,R.nextInt(6)+1,R.nextInt(6)+1};		System.out.println(d[0]+" "+d[1]+" "+d[2]);		if (d[0]==d[1]||d[0]==d[2]||d[1]==d[2])			return rollLoop()+1;		return 1;	}}