/* 連続的確率分布. */ #define _CRT_SECURE_NO_WARNINGS /* scanf に対する警告を抑止する */ #include #include #include /* 数学関数 */ double getuniform(); double getrandom(double y); /* 必ずこの型 */ int main(){ int n; /* データ番号 */ int nmax; /* サンプルサイズ */ int seed; /* 疑似乱数のシード */ double y,r; scanf("%d",&seed); scanf("%d",&nmax); srand(seed); /* シードの設定 */ printf("#d=%d\n#N=%d\n",seed,nmax); printf("y,r\n");/*列名*/ for(n=0;n