summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/other/Global_Functions.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt
index aef48a489..9fb4949fa 100644
--- a/npc/other/Global_Functions.txt
+++ b/npc/other/Global_Functions.txt
@@ -45,8 +45,8 @@
// callfunc "F_InsertComma",<number>{,<precision>,<separator>}
// Examples:
// callfunc("F_InsertComma",7777777) // returns "7,777,777"
-// callfunc("F_InsertComma",1000000000,3,","}) // returns "1,000,000,000"
-// callfunc("F_InsertComma",1000000000,3,"_"}) // returns "1_000_000_000"
+// callfunc("F_InsertComma",1000000000,3,",") // returns "1,000,000,000"
+// callfunc("F_InsertComma",1000000000,3,"_") // returns "1_000_000_000"
// callfunc("F_InsertComma",1000000000,4) // returns "10,0000,0000"
function script F_InsertComma {
.@value = getarg(0);
@@ -327,16 +327,14 @@ function script Time2Str {
return .@Time$;
}
-//////////////////////////////////////////////////////////////////////////////////
-// *** Function "F_ShuffleNumbers":
+//== Function F_ShuffleNumbers =============================
// Generate a set of numbers in random order that the numbers are not repeated
-// --- callfunc "F_ShuffleNumbers",<start num>,<last num>,<output array>{,<count>};
+// callfunc "F_ShuffleNumbers",<start num>,<last num>,<output array>{,<count>};
// Examples:
// callfunc("F_ShuffleNumbers", 0, 5, .@output) // possible output 4,1,3,2,0,5
// callfunc("F_ShuffleNumbers", -5, 1, .@output) // possible output -3,-5,-4,-2,-1,1,0
// callfunc("F_ShuffleNumbers", 0, 100, .@output, 5) // possible output 9,55,27,84,33
// Reminder: Use *freeloop command when appropriate !
-//////////////////////////////////////////////////////////////////////////////////
function script F_ShuffleNumbers {
deletearray getarg(2);
.@static = getarg(0);