[過去ログ]
【ゲームエンジン】Unityなんでも質問スレpart12 (1002レス)
【ゲームエンジン】Unityなんでも質問スレpart12 http://mevius.5ch.net/test/read.cgi/gamedev/1699257023/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
168: 名前は開発中のものです。 [] 2023/11/25(土) 11:28:32.02 ID:6mVYgNka 1 public static int Range(int minInclusive, int maxExclusive); なのでint型はmin以上max以下だから1〜3が欲しいならRandom.Range(1, 4) ただしfloat型の場合 public static float Range(float minInclusive, float maxInclusive); なのでmin以上max未満だから1.0f〜3.0fが欲しいならRandom.Range(1.0f, 3.0f) 2 特定の数値をList<int>にぶち込んでこれ呼び出せばランダムな値取ってきてくれる↓ public static T RandomPick<T>(IReadOnlyList<T> collection) { return collection[UnityEngine.Random.Range(0, collection.Count)]; } http://mevius.5ch.net/test/read.cgi/gamedev/1699257023/168
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 834 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.008s