S
S
Sirex21602016-09-06 05:33:41
Delphi
Sirex2160, 2016-09-06 05:33:41

How to make a random number generator in Delphi so that it is at least 128 bits?

It is necessary to implement a method for generating random numbers of at least 128 bits. Output their decimal representation. Generate mono in chunks of 32 bits. At first I did it through random, but here's something I doubt that it will be right. Does anyone know how this can be done?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
nirvimel, 2016-09-06
@nirvimel

How to make a random number generator?

It would be wrong to do otherwise.

I
iBird Rose, 2016-09-06
@iiiBird

everything is correct. just don't forget about randomize. otherwise you will always get the same values ​​​​after each restart of the program

E
evgeniy_lm, 2016-09-06
@evgeniy_lm

Don't doubt it's right

S
Sirex2160, 2016-09-06
@Sirex2160

And how can I make it always have a different number? And then the first 2 digits are always the same ...

K
Konstantin Stepanov, 2016-09-06
@koronabora

You still can't get 100% random. And so - to generate in parts, do not forget about randomize and then glue from parts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question