0 Members and 2 Guests are viewing this topic.
[*] Rand -> [Error] (4:47): Type mismatchprocedure Randomize(Number: Single);begin WriteLn(FloatToStr(Random(-Number,Number)));end;procedure ActivateServer();begin Randomize(3.14);end;
Good to know^^Next Question too Random:How can i calculate the ammount of % which i have that it picks a selected Number?1% = Random(0,100) Ok Easy50% = Random(0,2)Only decrease the 100 for every %? Not sure.Hope you understand ;|
output := WRand([1,1]);
output := WRand([2,1]);
output := WRand([2, 1, 1]);
output := WRand([32, 18, 25, 25]);