projects
/
living-lab-site.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upload bugs solved: elim_dupl_res feature causes generation of a malformed content...
[living-lab-site.git]
/
cis
/
cis_lb
/
load_balancer
/
random_lb.py
1
import random
2
3
from base import LoadBalancer
4
5
class RandomLoadBalancer(LoadBalancer):
6
7
def choose(self, urls):
8
index = random.randint(0, len(urls) - 1)
9
cis = urls[index]
10
11
del(urls[index])
12
13
return cis