Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Utils.cs 358 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  1. namespace RollerSkillBot
  2. {
  3. using System;
  4. public static class Utils
  5. {
  6. public const string GameDataKey = "GameData";
  7. public static string RandomPick(string listText)
  8. {
  9. var list = listText.Split('|');
  10. var random = new Random();
  11. return list[random.Next(list.Length)];
  12. }
  13. }
  14. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...