Problem 2289. サイコロを作ろう
1から6までの独立かつランダムな数値を返すような関数を作成しましょう。
例:
>> [x1,x2] = rollDice();
と入力すると
x1 = 5 x2 = 2
のような解を返します。
Solution Stats
Problem Comments
- 
		4 Comments
		    Show
		    1 older comment
		  
		  
		Noriko Hounoki
    	on 9 Jul 2017
	
	
  	できました♪めっちゃヘルプ読みました。
		Noriko Hounoki
    	on 9 Jul 2017
	
	
  	あ、すみません。ヘルプじゃなくてdocでした!
		David Verrelli
    	on 21 Oct 2017
	
	
  	Nice to see problems not just written in English.
		mizuki
    	on 5 Nov 2017
	
	
  	これから日本語の問題を少しずつ増やす予定です。日本語 タグをつけますので、気が向いたらぜひ解いてみてくださいね。
Solution Comments
Show commentsProblem Recent Solvers385
Suggested Problems
- 
         Sum the numbers on the main diagonal 599 Solvers 
- 
         Mersenne Primes vs. All Primes 736 Solvers 
- 
         Calculate the average value of the elements in the array 1533 Solvers 
- 
         
         544 Solvers 
- 
         Find x rows where the sum of the numbers is the maximum 552 Solvers 
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!