| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

Windows Mobile 乱数のSeedを生成する

提供: MyMemoWiki
2020年2月15日 (土) 08:40時点におけるPiroto (トーク | 投稿記録)による版
ナビゲーションに移動 検索に移動

Windows Mobile 乱数のSeedを生成する

Windows Mobile | テンプレート:Category コード片

  • [Windows Mobile 6 VisualStudio2005 で time 関数が使えない] [Visual Studio 環境では、time関係の関数が利用できない]

対応策(MFC)

SYSTEMTIME st;
GetSystemTime(&st);
CTime ct = CTime(st);
srand((unsigned)ct.GetTime());