OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f64de4
)
Update random.md
author
Xeonacid
<h.dwwwwww@gmail.com>
Tue, 6 Aug 2019 05:58:13 +0000
(13:58 +0800)
committer
GitHub
<noreply@github.com>
Tue, 6 Aug 2019 05:58:13 +0000
(13:58 +0800)
docs/misc/random.md
patch
|
blob
|
history
diff --git
a/docs/misc/random.md
b/docs/misc/random.md
index
27facd7
..
bd6cf04
100644
(file)
--- a/
docs/misc/random.md
+++ b/
docs/misc/random.md
@@
-33,18
+33,20
@@
#### 示例
- #include<ctime>
- #include<iostream>
- #include<random>
-
- using namespace std;
-
- int main()
- {
- mt19937 myrand(time(0));
- cout<<myrand()<<endl;
- return 0;
- }
+```cpp
+#include<ctime>
+#include<iostream>
+#include<random>
+
+using namespace std;
+
+int main()
+{
+ mt19937 myrand(time(0));
+ cout<<myrand()<<endl;
+ return 0;
+}
+```
### random_shuffle