private void Rand_Click(object sender, EventArgs e)
{
    refout temp = new refout();
    int x;
    temp.Rand(out x);
    label3.Text = "Out is "+ x.ToString();
}
