C# 隨機傳回 List 中的元素 Post author:rovingwind Post published:2021 年 5 月 23 日 Post category:C# Post comments:0 Comments var random = new Random(); var listItem = list[random.Next(list.Count)]; You Might Also Like C# 跳出迴圈 return、break、continue 用法 2021 年 5 月 27 日 MVC架構是什麼?認識 Model-View-Controller 軟體設計模式 2021 年 4 月 26 日 C# ASP.NET 控制 cshtml 是否套用 Layout 2021 年 5 月 27 日 發佈留言 取消回覆CommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) 在瀏覽器中儲存顯示名稱、電子郵件地址及個人網站網址,以供下次發佈留言時使用。