Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
bool doRandom = true;
public void ButtonClick(object sender, EventArgs ea)
{
if (doRandom)
{
GenerateRandomNumber();
doRandom = false;
}
DoOtherStuff();
}
if(doRandom)
{
Random rdm=new Random((int) DateTime.Now.Ticks);
doRandom = false;
}
Random rdm;
...
private void ButtonCLick(..)
{
if(rdm == null)
{
Random rdm=new Random((int) DateTime.Now.Ticks);
}
//...
}
if(rdm==null)
{
Random rdm=new Random((int)DateTime.Now.Ticks);
}
Random rdm = null;
private void Button_Click...
{
if (rdm == null)
{
rdm = new Random();
}
}