Thread: Random string
View Single Post
 
Old 08-05-2019, 07:17 AM
myicq myicq is offline
Junior Member
 
Join Date: Apr 2017
Posts: 1
Default

Bringing up this old thread... Just wanted to state that if you put randomize() into the function, and call that function in a loop, you will end up with a sequence of identical "random" values.


Like this:
Code:
  for i:= 1 to 10 do
  begin
     getRandomValue(5);

  end;
result:


abc123
abc123
abc123
abc123
kkk998
kkk998




PCs use clock to randomize, so if you call the function multiple times each msec, it's same value.
Reply With Quote