using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
System.Random randGen;
int[,] data;
int width = 128;
// Use this for initialization
void Start () {
randGen = new System.Random(100500);
data = new int[width,width];
for(int i=0; i<width; i++){
for(int j=0; j<width; j++){
data[i,j] = randGen.Next(0,4);
}}
Debug.Log(data[10,15]);
}
// Update is called once per frame
void Update () {
}
}
не оно?