$ swift Welcome to Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28). Type :help for assistance. 1> let members = ["log5", "terry", "ykws", "kagaffy", "koogawa", "kashihararara"].shuffled() members: [String] = 6 values { [0] = "koogawa" [1] = "log5" [2] = "kashihararara" [3] = "terry" [4] = "kagaffy" [5] = "ykws" }
koogawa ---+ A +---+ log5 ---+ +---+ kashihararara ---+ | terry ---+ +--- B +---+ | kagaffy ---+ +---+ ykws -------+
(edited)