Skip to content

Commit

Permalink
Merge pull request #353 from YuriCat/fix/seed_randrange_int
Browse files Browse the repository at this point in the history
fix: integer value for randrange()
  • Loading branch information
YuriCat committed Mar 17, 2024
2 parents 812485f + 7a7b933 commit cce6a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handyrl/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def resolve_agent(model_path):

print('%d process, %d games' % (num_process, num_games))

seed = random.randrange(1e8)
seed = random.randrange(int(1e8))
print('seed = %d' % seed)

opponent = model_paths[1] if len(model_paths) > 1 else 'random'
Expand All @@ -416,7 +416,7 @@ def eval_server_main(args, argv):

print('%d process, %d games' % (num_process, num_games))

seed = random.randrange(1e8)
seed = random.randrange(int(1e8))
print('seed = %d' % seed)

evaluate_mp(env, [None] * len(env.players()), None, env_args, {'default': {}}, num_process, num_games, seed)
Expand Down

0 comments on commit cce6a40

Please sign in to comment.