343 {
345 string shuffled_text;
346
347
349 for ( int i = 0; i < length_diff; ++i )
350 {
351 combination_text = "0" + combination_text;
352 }
353
354
355 for (
int j = 0; j < combination_text.
Length(); ++j )
356 {
357 int dial_number = combination_text.
Get( j ).
ToInt();
359 shuffled_text = shuffled_text + dial_number.ToString();
360 }
361
363 }
enum LockAction m_LockDigits
void SetCombination(int combination)
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
proto native int Length()
Returns length of string.
proto string Get(int index)
Gets n-th character from string.
proto native int ToInt()
Converts string to integer.