OSDN Git Service

Update random.md
authorXeonacid <h.dwwwwww@gmail.com>
Tue, 6 Aug 2019 05:58:13 +0000 (13:58 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2019 05:58:13 +0000 (13:58 +0800)
docs/misc/random.md

index 27facd7..bd6cf04 100644 (file)
 
 #### 示例
 
-    #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