simulate() finished
This commit is contained in:
@@ -17,7 +17,8 @@ public class Racesimulator {
|
|||||||
|
|
||||||
public void simulate(Athlete pAthlete){
|
public void simulate(Athlete pAthlete){
|
||||||
Random rand =new Random();
|
Random rand =new Random();
|
||||||
pAthlete.setStartTime(rand.);
|
pAthlete.setStartTime(rand.nextLong());
|
||||||
|
pAthlete.setEndTime(pAthlete.getStartTime()+rand.nextLong());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user