finetuning the random sender
Dieser Commit ist enthalten in:
Ursprung
15ce537f22
Commit
7e376763b8
@ -5,7 +5,7 @@
|
||||
/* -------------------------------------------------- */
|
||||
|
||||
#define NBVAL 4
|
||||
#define DELAI 1664
|
||||
#define DELAI 1789
|
||||
|
||||
int values[NBVAL];
|
||||
|
||||
@ -23,11 +23,11 @@ void updatevalues(void)
|
||||
{
|
||||
int foo;
|
||||
for (foo=0; foo<NBVAL; foo++) {
|
||||
if (rand()%100<33) {
|
||||
if (rand()%100<42) {
|
||||
values[foo] += (foo + 1);
|
||||
}
|
||||
if (values[foo] > 1023) {
|
||||
values[foo] = rand()%25;
|
||||
values[foo] = rand()%5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren