Topic: Random
It helps to get any numbers or alphabets randomly.
Example-1:
Result:
Example-2:
Result will number between 0 and 100:
Example-3:
Result will be double number between 0 and 1:
Example-4:
Result will be a random alphabet.
Example-5:
Result:
Example-6:
Result:
Lab assignment
Create a game Pyatnashka
In this game we use random numbers between 1 and 15 but these numbers should not be repeated.
For that case we use the following code:
Topic: Open File Dialog
Example-1:
Result:
Example-2:
Result:
Example-3:
Result:
Example-4:
Result:
Example-5:
Result:
Example-6:
Result:
Example-7:
Result:
Переглядів: 203 |