Bản mẫu:Rnd/a
This is {{rnd}}'s second step taking input from the main page with the following code.
- Bản mẫu:Rnd (sửa | thảo luận | lịch sử | liên kết | theo dõi | nhật trình)
{{formatnum:{{rnd/a|{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}}}}}
- Bản mẫu:Rnd/a (sửa | thảo luận | lịch sử | liên kết | theo dõi | nhật trình)
{{rnd/c{{rnd/b|abs{{{1}}}|{{{1}}}|{{{2}}}}}|{{{1}}}|{{{2}}}}}
It calls {{rnd/b}} which crunches out a code to determine which of the {{rnd/c*}} subtemplates to go to next.
- Bản mẫu:Rnd/b (sửa | thảo luận | lịch sử | liên kết | theo dõi | nhật trình)
{{#expr:2*(2+(2-({{{1}}}<10^9)*(2-({{{1}}}/10^5round0={{{1}}}/10^5)))*({{{1}}}>=10^5)-({{{1}}}<0.0001))*(({{{2}}}>0)-({{{2}}}<0))+({{{3}}}>0)}}