<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ARandintnorep</id>
	<title>TI-BASIC:Randintnorep - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ARandintnorep"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Randintnorep&amp;action=history"/>
	<updated>2026-05-29T18:56:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Randintnorep&amp;diff=544&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Randintnorep&amp;diff=544&amp;oldid=prev"/>
		<updated>2016-02-24T18:06:36Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=randIntNoRep.gif&lt;br /&gt;
|summary=Used to create random lists&lt;br /&gt;
|syntax=randIntNoRep(start,end)&lt;br /&gt;
|location=[Math][left][8]&lt;br /&gt;
|compatibility=OS 2.53MP and TI-84+/SE&lt;br /&gt;
|size=2 bytes (EF35h)&lt;br /&gt;
}}&lt;br /&gt;
randIntNoRep( is used when you need to create a list of numbers in random order in which no integer is repeated.  This command is useful for things such as simulating decks of cards. Commonly, before this command was introduced, the following code would shuffle a deck:&lt;br /&gt;
&lt;br /&gt;
 rand(52→L₂&lt;br /&gt;
 seq(X,X,0,51→L₁&lt;br /&gt;
 SortA(L₂,L₁&lt;br /&gt;
&lt;br /&gt;
This result can now be achieved with the following code:&lt;br /&gt;
&lt;br /&gt;
 randIntNoRep(0,51→L₁&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&amp;#039;&amp;#039;seed&amp;#039;&amp;#039;→rand affects the output of randIntNoRep(&lt;br /&gt;
&lt;br /&gt;
What this does is quite simple. When you seed rand, then the next time you use randIntNoRep(, you will get a result that will be fairly random, but the same on all calculators. This allows several things to be possible, including password protection and encryption. For example, if you were to use the following code, you could encrypt and decrypt messages only if you use the same encryption value. In this example, Str1 contains the message:&lt;br /&gt;
&lt;br /&gt;
Decode:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ .!,0123456789→Str2&lt;br /&gt;
 Input &amp;quot;CODE:&amp;quot;,A&lt;br /&gt;
 A→rand&lt;br /&gt;
 randIntNoRep(1,length(Str2→L1&lt;br /&gt;
 length(Str1→B&lt;br /&gt;
 &amp;quot;.&lt;br /&gt;
 For(A,1,B&lt;br /&gt;
 Ans+sub(Str2,sum(cumSum(L1=inString(Str2,sub(Str1,A,1)))),1&lt;br /&gt;
 End&lt;br /&gt;
 sub(Ans,2,B&lt;br /&gt;
&lt;br /&gt;
Encode:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ .!,0123456789→Str2&lt;br /&gt;
 Input &amp;quot;CODE:&amp;quot;,A&lt;br /&gt;
 A→rand&lt;br /&gt;
 length(Str2→C&lt;br /&gt;
 randIntNoRep(1,Ans→L1&lt;br /&gt;
 length(Str1→B&lt;br /&gt;
 &amp;quot;.&lt;br /&gt;
 For(A,1,B&lt;br /&gt;
 Ans+sub(Str2,L1(C+1-inString(Str2,sub(Str1,A,1))),1&lt;br /&gt;
 End&lt;br /&gt;
 sub(Ans,2,B&lt;br /&gt;
&lt;br /&gt;
The output strings are in Ans&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Rand|Rand]]&lt;br /&gt;
* [[TI-BASIC:Randbin|RandBin(]]&lt;br /&gt;
* [[TI-BASIC:Randnorm|RandNorm(]]&lt;br /&gt;
* [[TI-BASIC:Randm|RandM(]]&lt;br /&gt;
* [[TI-BASIC:Randint|RandInt(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>