Skip to content

Commit 8f37bdb

Browse files
authored
added Brainf*** Algorithm for x = pseudo-random number
1 parent 9202ff0 commit 8f37bdb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Random Number/random.bf

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
temp0[-]
2+
temp1[-]
3+
temp2[-]
4+
temp3[-]
5+
temp4[-]
6+
temp5[-]
7+
randomh[temp0+randomh-]
8+
randoml[temp1+randoml-]
9+
temp3+++++++[temp2+++++++++++@temp3-]
10+
temp2[
11+
temp0[randomh+temp3+temp0-]
12+
temp3[temp0+temp3-]
13+
temp1[randomh+temp3+temp4+temp1-]
14+
temp4[temp1+temp4-]
15+
temp3[
16+
randoml+[temp4+temp5+randoml-]
17+
temp5[randoml+temp5-]+
18+
temp4[temp5-temp4[-]]
19+
temp5[randomh+temp5-]
20+
temp3-]
21+
temp2-]
22+
++++++[temp3++++++++temp2-]
23+
temp3-[
24+
temp1[randomh+temp2+temp1-]
25+
temp2[temp1+temp2-]
26+
temp3-]
27+
temp0[-]temp1[-]+++++[temp0+++++temp1-]
28+
temp0[
29+
randoml+[temp1+temp2+randoml-]
30+
temp2[randoml+temp2-]+
31+
temp1[temp2-temp1[-]]
32+
temp2[randomh+temp2-]
33+
temp0-]
34+
++++++[randomh+++++++++temp0-]
35+
randomh[x+temp0+randomh-]
36+
temp0[randomh+temp0-]

0 commit comments

Comments
 (0)