function getRandomElement(array) {
let randomIndex = Math.floor(Math.random() * array.length);
return array[randomIndex]
}
artists = FileAttachment("favourites/artist.csv").csv()
movies = FileAttachment("favourites/movie.csv").csv()
shows = FileAttachment("favourites/show.csv").csv()
randomArtist = {
changeMind;
return getRandomElement(artists).Artist;
}
randomMovie = {
changeMind;
return getRandomElement(movies).Movie
}
randomShow = {
changeMind;
return getRandomElement(shows).Show
}
changeMind = {
let i = 0;
yield i;
while (true) {
yield await Promises.tick(5000, ++i);
}
}Hi! I’m Henry Stern, a PhD-stream MA student in economics at the University of Western Ontario.
I’m interested in macroeconomics, international economics and finance especially the relationship between investment and productivity.
Aside from economics, I like solving crosswords with my wife, playing guitar and watching good movies.
Favourites1:
- Musician:
- Movie:
- Show:
- Food2: Pizza