- namespace UniformMaterialManagementSystem.Utils
- {
- public static class RandomHelper
- {
- public static int CreateRandom(int count)
- {
- var buffer = Guid.NewGuid().ToByteArray();
- var iRoot = BitConverter.ToInt32(buffer);
- var random = new Random(iRoot);
- return random.Next() % count;
- }
- }
- }
|