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) skill_weeks(int level)
/* how many weeks must i study to get from level to level+1 */ /* how many weeks must i study to get from level to level+1 */
{ {
/* derzeit gleichverteilt. MUSS geändert werden! */ int coins = 2*level;
return (1+rand()%(level*2+1)); int heads = 1;
while (coins--) {
heads += rand() % 2;
}
return heads;
} }
void void