|
Случайное целое число например от 1 до 60
|
|||
---|---|---|---|
#18+
Тупой конечно вопрос. Rnd кажется как то предвзято генерирует, т.е. первое случайное всегда будет одно и то же, как припоминаю. Или чего-то путаю. Но надо действительно случайное без завязки на предыдущие результаты. ... |
|||
:
Нравится:
Не нравится:
|
|||
09.08.2012, 16:20 |
|
Случайное целое число например от 1 до 60
|
|||
---|---|---|---|
#18+
Randomize ... |
|||
:
Нравится:
Не нравится:
|
|||
09.08.2012, 16:34 |
|
Случайное целое число например от 1 до 60
|
|||
---|---|---|---|
#18+
... |
|||
:
Нравится:
Не нравится:
|
|||
09.08.2012, 16:34 |
|
Случайное целое число например от 1 до 60
|
|||
---|---|---|---|
#18+
The Rnd function returns a value less than 1 but greater than or equal to zero. The value of number determines how Rnd generates a random number: For any given initial seed, the same number sequence is generated because each successive call to the Rnd function uses the previous number as a seed for the next number in the sequence. Before calling Rnd, use the Randomize statement without an argument to initialize the random-number generator with a seed based on the system timer. To produce random integers in a given range, use this formula: Int((upperbound - lowerbound + 1) * Rnd + lowerbound) Here, upperbound is the highest number in the range, and lowerbound is the lowest number in the range. Note To repeat sequences of random numbers, call Rnd with a negative argument immediately before using Randomize with a numeric argument. Using Randomize with the same value for number does not repeat the previous sequence. ... |
|||
:
Нравится:
Не нравится:
|
|||
09.08.2012, 16:35 |
|
|
start [/forum/topic.php?fid=60&fpage=72&tid=2157521]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
38ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
46ms |
get tp. blocked users: |
2ms |
others: | 14ms |
total: | 146ms |
0 / 0 |