skill_weeks, die letzte und endgültige fassung

This commit is contained in:
Enno Rehling 2002-02-24 11:04:23 +00:00
parent 4a9abea1d8
commit 02304df7b5
1 changed files with 6 additions and 2 deletions

View File

@ -315,8 +315,12 @@ int
skill_weeks(int level)
/* how many weeks must i study to get from level to level+1 */
{
/* derzeit gleichverteilt. MUSS geändert werden! */
return (1+rand()%(level*2+1));
int coins = 2*level;
int heads = 1;
while (coins--) {
heads += rand() % 2;
}
return heads;
}
void