Skip to main content
1 of 3
daviewales
  • 281
  • 1
  • 6

#Python

#!/usr/bin/env python3

import random

names = ['John', 'Jeff', 'Emma', 'Steve', 'Julie']

start = names.index(names[-1]) - len(names)
end = len(names)

print(random.choice(names[start:end]))
daviewales
  • 281
  • 1
  • 6