Namespaces

Variants
Actions

urn

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial upsert from MAXobjectUZ list)
 
Line 2: Line 2:
  
 
==Using the {{maxword|name=urn}} object==
 
==Using the {{maxword|name=urn}} object==
 +
When we want a random number generator that will not repeat numbers, we can use the {{maxword|name=urn}} (unique random number) object.
  
 
=={{maxword|name=urn}} Tutorials==
 
=={{maxword|name=urn}} Tutorials==
  
 
=={{maxword|name=urn}} Tips and Workarounds==
 
=={{maxword|name=urn}} Tips and Workarounds==
 +
When {{maxword|name=urn}} has used all the numbers in its range, it requires the message "clear" before it will output again. Sometimes it can be useful to make sure that urn always outputs.
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
1081.3oc4X0zihiCD8L7qnTNSSGmPBvdali64UZOrZDxIof3dB1nXmFXGM+2
 +
2xNIMcOMz.AZXklKfbEm5iWUtpmyO52yKQsA0dve.+Czq2O52qmSjUPul087
 +
Vx2jVv0ts4kpVtDkFuA0OyfaLN4+UNBkhE4FPUYJPCHUFwbApgJMrNGk.un.
 +
jUKSvRMjyeFgDjjllqznbXq9JDRLUUIcJMnQH8VBIoSmGvZDNubQhcs+P+FI
 +
q3lzbgbwrRL0TGSLVL8XfEGMLZ.DLMztJb7Pe3a6zcsC6TdqpDYtfRk7zCgr
 +
VeatRZj7kn6QeoTvKZeRRURRA9Fui1qV7u0xB14hkHEsFtQnjuwMm3byH6Nc
 +
Qj8G3a1W5m86a+YvIleRpLFkz6iPt8fSSG6r+3Q1+B7a+8.nDaOnjeqIq2mY
 +
6JrV0dIb4BuNEKeTsVUo7gmR.dh1TxSs3IjrE9SUtD9pPSUUymC7JiJs.4TA
 +
GWlAD3+LoNZAThqPtAy.MVf0uM2.lbaQ4BgTRnCnlCHOMGj3ZHcKomgsFUnA
 +
gLsnJiTvZgIGHulj.CeD2vWtp.0ORRdvTJR+t9wRx1pkyrablTMq1z6ufO9Z
 +
UvGNZjqfejqfeJ6bJ3ClbCJ3CXN2LJ9hK3qaobtE70vzn5ycQGqfOXOnzXuW
 +
zdIgQFrbFJ4Mnh+QQv2cLQXKze4zxAP0aVCg1xnft1PHH5Sng.cTjz865Gzb
 +
rLZuAYvQCxItvi42knLzqaY5qYFdIp07E36fEWquyESZlD3OZ2AC6gjy.RXc
 +
.Rtp3wkzQnYDXW5HvtKcDNRe1lfZxchWQi886LuB1ji0F4T.fo9W9XlC15oq
 +
8cXgQmVem8UqM06dVOEN8hwyCws6qaINYxLKALN35fABZmYBhtVwVXtpnPsl
 +
3cQj83fMTN9kKF.qQHkKIZZeGAcUIZEvKVy2pgEnDKIcSZq98c5iHJVZY6QD
 +
ESQwyntwX6m11nKm1Vb8f1XG91bOk3QmCsMV70f11ULS92s4EKs52mapYdiY
 +
Cb37ZgMApb2dbUkwlMHZ2MYDBlEEfvPustIwZKLvrgvmT9vMDLHn9tit+h8O
 +
qjwnimLtyS5Bl18IcreC39F3G20gVS+Dn99gj7F3ZNc5eCkix+KXR3thiP14
 +
D7iu6z+t5SpCh59j5.uO+iCt83R6+xmxyEQV4uEtzppxzVi0Rm.XuXpLTaDR
 +
2r+WsI6m3A1E44hrLT95C7YBssGfK12eh6T8G60pdko1u+XuA9sxehNE+I71
 +
4OrSvebI0ai+7Kl5.9ysKeYu0v+mvmfS330sCcFeJEyGwaVJxVon9TMMbXzv
 +
xHZRQP88Chb2O3sqBBa5k59vj1E6bgqVnM8JDZW2z9QqBYczcpa5yWshtpht
 +
QmNOglF9jp7kOmLkpj0KcCq8JwmEs6OzIgWRi8LzLO5lQtoSalD602Zme1++
 +
.zduOnB
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
  
 +
Urn is a great way to generate random tables of data or to scramble existing ones. This simple patch uses urn to create a simple alphabet cypher for encrypting messages.
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
2624.3oc2bs0bqZbG+Y6OE6noYZ5Te7r2XYIuzlj9heouzloOzIyYPnUV3f.
 +
Brxx1Y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jtnJDF0SMAhQ1mZaRICFta0TnI.6
 +
jMXBtmtZgXaa0stZIjcqlf8v6bPb3s.yihEnNYyF5QOschK6wfQ5jeVO53m0
 +
EquQ9yc.qKFVX9KSsntvu39S9g2I5witugcggQUWC5BhdXdzBTmrH5unaHug
 +
UbL5wikBA1EDh4OKh7NYQzeZ7QcwmZXvEk.Tn+xJiwurDencfb7m1NmMFUDa
 +
DKNTzXHL+tXtayTHxL92MYPaVMEk2hbQUIYM0f6h2N+39UOs.mz5.i5OqCco
 +
bGLOZspKROL+YefQuvnGXWje7qyt++RYm1OamXr4YkGwriBAY2hIvzYW7E4p
 +
pnsEgwkkM+vHXHEMgLac7CEU5kraLKSysKMcbdVk3wz1q2zh8YwUIqRkhD4l
 +
JauLeR4D8Z8842u9+AztWzQC
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
 +
 
==Third-Party Max externals similar to the {{maxword|name=urn}} object==
 
==Third-Party Max externals similar to the {{maxword|name=urn}} object==
  
 
[//www.maxobjects.com/?request=urn Maxobjects.com listing for the urn object]
 
[//www.maxobjects.com/?request=urn Maxobjects.com listing for the urn object]
 +
 +
The urn-jb abstraction by John Bischoff can be extremely useful if you want to autoclear the urn and prevent repetitions.
 +
urn-jb is included with max in ./examples/max-tricks/random_with_no_repeat/urn-jb.maxpat
  
 
==People who looked at/used this object also looked at....==
 
==People who looked at/used this object also looked at....==
 +
*{{maxword|name=decide}}
 +
*{{maxword|name=drunk}}
 +
*{{maxword|name=jit.noise}}
 +
*{{maxword|name=jit.repos}}
 +
*{{maxword|name=random}}
  
 
==Errors or Clarifications==
 
==Errors or Clarifications==

Latest revision as of 17:12, 30 July 2013

Contents

[edit] urn online refpage

[edit] Using the urn object

When we want a random number generator that will not repeat numbers, we can use the urn (unique random number) object.

[edit] urn Tutorials

[edit] urn Tips and Workarounds

When urn has used all the numbers in its range, it requires the message "clear" before it will output again. Sometimes it can be useful to make sure that urn always outputs.

-- Pasted Max Patch, click to expand. --

Urn is a great way to generate random tables of data or to scramble existing ones. This simple patch uses urn to create a simple alphabet cypher for encrypting messages.

-- Pasted Max Patch, click to expand. --

[edit] Third-Party Max externals similar to the urn object

Maxobjects.com listing for the urn object

The urn-jb abstraction by John Bischoff can be extremely useful if you want to autoclear the urn and prevent repetitions. urn-jb is included with max in ./examples/max-tricks/random_with_no_repeat/urn-jb.maxpat

[edit] People who looked at/used this object also looked at....

[edit] Errors or Clarifications

(please list things that you believe to be errors or omissions from the existing refpage)