aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2015-07-30 16:13:23 +0200
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2015-07-30 16:13:23 +0200
commite0e37a5b765d5ba614355c9b0c37bf048ce501ef (patch)
tree87fc2d030c681afaae8eb0c33bb621c43635bb93 /README.md
parentname change to SyncRNG and documentation in the .c file (diff)
downloadSyncRNG-e0e37a5b765d5ba614355c9b0c37bf048ce501ef.tar.gz
SyncRNG-e0e37a5b765d5ba614355c9b0c37bf048ce501ef.zip
readme formatting
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 14 insertions, 10 deletions
diff --git a/README.md b/README.md
index 6147774..c1dc5fb 100644
--- a/README.md
+++ b/README.md
@@ -27,21 +27,25 @@ build both shared libraries using:
Then, in a Python script located in the same directory as `syncrng.so` and
`SyncRNG.py`, you can do:
- from pysyncrng import SyncRNG
-
- s = SyncRNG(seed=123456)
- for i in range(10):
- print(s.randi())
+```python
+from SyncRNG import SyncRNG
+
+s = SyncRNG(seed=123456)
+for i in range(10):
+ print(s.randi())
+```
Similarly, in an R script located in the same directory as `RSyncRNG.so` and
`SyncRNG.R`, you can do:
- source('./SyncRNG.R')
-
- s = SyncRNG(seed=123456)
- for (i in 1:10) {
+```R
+source('./SyncRNG.R')
+
+s = SyncRNG(seed=123456)
+for (i in 1:10) {
cat(s$randi(), '\n')
- }
+}
+```
You'll notice that the random numbers are indeed the same.