https://www.den4b.com/w/index.php?title=ReNamer:Scripts:Random_characters_and_length&feed=atom&action=history
ReNamer:Scripts:Random characters and length - Revision history
2024-03-28T21:21:49Z
Revision history for this page on the wiki
MediaWiki 1.35.5
https://www.den4b.com/w/index.php?title=ReNamer:Scripts:Random_characters_and_length&diff=3162&oldid=prev
Den4b: Text replacement - "</source>" to "</syntaxhighlight>"
2017-02-08T14:05:12Z
<p>Text replacement - "</source>" to "</syntaxhighlight>"</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:05, 8 February 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l42" >Line 42:</td>
<td colspan="2" class="diff-lineno">Line 42:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> FileName[BaseLength + 1] := '.';</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> FileName[BaseLength + 1] := '.';</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>end.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>end.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div></<del class="diffchange diffchange-inline">source</del>></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></<ins class="diffchange diffchange-inline">syntaxhighlight</ins>></div></td></tr>
</table>
Den4b
https://www.den4b.com/w/index.php?title=ReNamer:Scripts:Random_characters_and_length&diff=3112&oldid=prev
Den4b: Text replacement - "<source>" to "<syntaxhighlight lang="pascal">"
2017-02-08T14:00:49Z
<p>Text replacement - "<source>" to "<syntaxhighlight lang="pascal">"</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:00, 8 February 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l17" >Line 17:</td>
<td colspan="2" class="diff-lineno">Line 17:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Author: Denis Kozlov. Date: 3 October 2011. </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Author: Denis Kozlov. Date: 3 October 2011. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><<del class="diffchange diffchange-inline">source</del>></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><<ins class="diffchange diffchange-inline">syntaxhighlight lang="pascal"</ins>></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>const</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>const</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> CHARS = 'abcdefghijklmnopqrstuvwxyz';</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> CHARS = 'abcdefghijklmnopqrstuvwxyz';</div></td></tr>
</table>
Den4b
https://www.den4b.com/w/index.php?title=ReNamer:Scripts:Random_characters_and_length&diff=2212&oldid=prev
Den4b: Created page with "{{Up|ReNamer:Scripts}} Generate new names consisting of random selection of characters and of random length. Below are the parameters of the script: * CHARS - set of characters..."
2011-10-03T02:12:45Z
<p>Created page with "{{Up|ReNamer:Scripts}} Generate new names consisting of random selection of characters and of random length. Below are the parameters of the script: * CHARS - set of characters..."</p>
<p><b>New page</b></p><div>{{Up|ReNamer:Scripts}}<br />
<br />
Generate new names consisting of random selection of characters and of random length.<br />
<br />
Below are the parameters of the script:<br />
* CHARS - set of characters that are to be used for generation of new name;<br />
* LENGTH_MIN - minimum length of the base name;<br />
* LENGTH_MAX - maximum length of the base name;<br />
* LENGTH_EXT - length of the extension (not counting the dot).<br />
<br />
== Tested ==<br />
<br />
* ReNamer 5.60<br />
<br />
== Code ==<br />
<br />
Author: Denis Kozlov. Date: 3 October 2011. <br />
<br />
<source><br />
const<br />
CHARS = 'abcdefghijklmnopqrstuvwxyz';<br />
LENGTH_MIN = 5;<br />
LENGTH_MAX = 20;<br />
LENGTH_EXT = 3;<br />
var<br />
I, CharIndex, BaseLength, FullLength: Integer;<br />
Initialized: Boolean;<br />
begin<br />
if not Initialized then<br />
begin<br />
Initialized := True; <br />
Randomize;<br />
end;<br />
BaseLength := RandomRange(LENGTH_MIN, LENGTH_MAX + 1);<br />
FullLength := BaseLength + LENGTH_EXT + 1;<br />
SetLength(FileName, FullLength);<br />
for I := 1 to FullLength do<br />
begin<br />
CharIndex := RandomRange(1, Length(CHARS) + 1);<br />
FileName[I] := CHARS[CharIndex];<br />
end;<br />
FileName[BaseLength + 1] := '.';<br />
end.<br />
</source></div>
Den4b