Skip to content

Instantly share code, notes, and snippets.

@NikitaShkaruba
Created September 18, 2014 15:21
Show Gist options
  • Save NikitaShkaruba/8321abec08937e675892 to your computer and use it in GitHub Desktop.
Save NikitaShkaruba/8321abec08937e675892 to your computer and use it in GitHub Desktop.
namespace SharpGL_EZ
{
public class Fruct
{
public Random dice = new Random();
public int x, y;
public Fruct()
{
x = dice.Next();
y = dice.Next();
}
}
public partial class MainWindow : Window
{
public Fruct[] f = new Fruct[10];
static void main()
{
for (int i = 0; i < 15; i++)
f[i] = new Fruct();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment