A
A
Almaz Familia2021-06-10 20:08:53
JavaScript
Almaz Familia, 2021-06-10 20:08:53

How can I make sure that the random number does not change when the page is refreshed?

How can I make sure that the random number does not change when the page is refreshed?
Example:
such as a random number from 0 to 10, 8 fell out during page updates, this number should not change.
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Petr Lesopovalov, 2021-06-10
@Petr_axeman

Cookies.

A
Alexander, 2021-06-10
@Seasle

1. LocalStorage
2. PRNG PRNG
PRNG
List
Linear Congruential Method

S
Sergey Sokolov, 2021-06-10
@sergiks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question