X
X
Xasthul2017-08-23 14:46:13
Programming
Xasthul, 2017-08-23 14:46:13

How to make a random number appear on the screen, after which this number is written to a variable?

There is a game. When the player enters y, a random number is displayed on the screen. How can I write this number into a variable so that I can then add up all the points and say the total number of points?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2017-08-23
@Xasthul

It is more correct to first write the number into a variable, and then display the value of the variable.

T
TyzhSysAdmin, 2017-08-23
@POS_troi

if you brought it out, then you already have it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question