How to make it so that the application randomly chooses which part of the screen to spawn through the c # -pa code?
Something like this (he wrote in the answer window, he could have made a mess of something):
var rand = new Random(); var area = Screen.PrimaryScreen.WorkingArea; this.Left = rand.Next(area.Left, area.Right - this.Width); this.Top = rand.Next(area.Top, area.Bottom - this.Height);
Source: https://ru.stackoverflow.com/questions/751514/More articles:Creating a “cast” CentOS 7 for deployment on another serverOverloading the ++ operation for the matrix class in C ++Overlay does not overlap the color of the text and everything else.How to pull objects in QuerySet that have been added to the model in the last 24 hoursHow to check database cell for null?Algorithm to search for external partiesSuggest a method of storing variables with int values to sort them by value, variable names and display methodSplitting a single string into substringsIterating through the python listprohibit the function on subsequent clicksAll Articles