This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
public class Reserch : MonoBehaviour | |
{ | |
void Start() | |
{ | |
string folder = Application.dataPath; //これだけでunityの実行ファイルがあるフォルダがわかる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
public class TreeGen : MonoBehaviour | |
{ | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
public class PDX2TX16WX2 : MonoBehaviour | |
{ | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Case5 : MonoBehaviour | |
{ | |
//二項分布との比較。コインを3回投げて表が2回以上出る確率は? | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Case4 : MonoBehaviour | |
{ | |
//ある交差点で1ヵ月に発生する交通事故の死亡者数は平均1.5人だった。今後、1ヵ月に死亡事故が発生数する確率は? | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Case3 : MonoBehaviour | |
{ | |
//国道220km辺りのガソリンスタンド数が4件であった時、あと9km走ってガソリンスタンドに出会う確率は? | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Case2 : MonoBehaviour | |
{ | |
//国道100km辺りのガソリンスタンド数が3件であった時、あと12km走ってガソリンスタンドに出会う確率は? | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Case1 : MonoBehaviour | |
{ | |
//国道100km辺りのガソリンスタンド数が17件であった時、あと5km走ってガソリンスタンドに出会う確率は? | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Dice : MonoBehaviour | |
{ | |
void Start() | |
{ | |
Sampling(6, 60, 5, 100000); | |
Sampling(6, 60, 10, 100000); | |
Sampling(6, 60, 16, 100000); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Dice : MonoBehaviour | |
{ | |
void Start() | |
{ | |
Sampling(60, 60, 100000); | |
Sampling(600, 600, 100000); | |
Sampling(6000, 6000, 100000); | |
} |
NewerOlder