mirror of
https://github.com/tonytins/Lorem.NET.git
synced 2025-03-22 07:32:23 +00:00
Update readme.md
This commit is contained in:
parent
d579653036
commit
1661e94a0a
1 changed files with 5 additions and 1 deletions
|
@ -49,6 +49,10 @@ bool isTruth = LoremNET.Lorem.Chance(55, 100);
|
||||||
// this will randomly select an item from the group:
|
// this will randomly select an item from the group:
|
||||||
string[] numbers = GetNumbers();
|
string[] numbers = GetNumbers();
|
||||||
string number = LoremNET.Lorem.Random(numbers);
|
string number = LoremNET.Lorem.Random(numbers);
|
||||||
|
|
||||||
|
// this will randomly select a value from the enum:
|
||||||
|
MyEnum value = LoremNET.Lorem.RandomEnum<MyEnum>();
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### RandomHelper
|
### RandomHelper
|
||||||
|
@ -74,4 +78,4 @@ namespace LoremNET
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue