Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

zufälliger wert aus liste python

import random

names = ['John', 'Juan', 'Jane', 'Jack', 'Jill', 'Jean']
def selectRandom(names):
  return random.choice(names)

print("The name selected is: ", selectRandom(names))
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #wert #aus #liste #python
ADD COMMENT
Topic
Name
5+1 =