Linear congruential generator: Difference between revisions
Content added Content deleted
Simple9371 (talk | contribs) m (→{{header|Batch}}: Batch -> Batch File) |
|||
Line 363: | Line 363: | ||
30612</pre> |
30612</pre> |
||
=={{header|Batch}}== |
=={{header|Batch File}}== |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="dos">@echo off & setlocal enabledelayedexpansion |
||
@echo off & setlocal enabledelayedexpansion |
|||
echo BSD Rand |
echo BSD Rand |
||
Line 388: | Line 387: | ||
set p2= %2 |
set p2= %2 |
||
echo %p1:~-2% %p2:~-10% |
echo %p1:~-2% %p2:~-10% |
||
goto:eof |
goto:eof</syntaxhighlight> |
||
</syntaxhighlight> |
|||
'''Output:''' |
'''Output:''' |
||
<pre> |
<pre> |