?? expdev.c
字號:
#include <math.h>#include "dist.h"float ExpDist::expdev(void)// Returns an exponentially distributed, positive, random deviate of// unit mean, using ran1(idum) as the source of uniform deviates.{ float dum; do dum = (*ran1)(); while (dum == 0.0); return -log(dum);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -