#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main() {
    // 現在の時間をシードとして乱数を初期化
    srand(time(NULL));
    
    // サイコロ3つの結果を保持する配列
    int dice[3];
    
    // サイコロの結果を生成
    for (int i = 0; i < 3; i++) {
        dice[i] = (rand() % 6) + 1; // 1から6の範囲の数値を生成
    }
    
    // 結果を表示
    printf("結果: %d, %d, %d", dice[0], dice[1], dice[2]);
    
    return 0;
}