Jamoma API  0.6.0.a19
TTString.cpp
1 /*
2  Jamoma Class for representing strings
3  Copyright © 2012, Timothy Place
4 
5  License: This code is licensed under the terms of the "New BSD License"
6  http://creativecommons.org/licenses/BSD/
7  */
8 
9 #include "TTString.h"
10 #include "MersenneTwister.h"
11 
12 
14 {
15  MTRand twister;
16  unsigned int i = twister.randInt();
17  char s[16];
18 
19  snprintf(s, 16, "j%u", i);
20  s[15] = 0;
21  (*this) = s;
22 }
void TTFOUNDATION_EXPORT random()
Replace contents with a pseudo-random string.
Definition: TTString.cpp:13