How can I get random byte in given number of points from file in Delphi?

To get random bytes from a file at 23 different positions, you can use Delphi’s TFileStream in combination with the Random function. Here’s an example:

You can call this procedure by providing the path to the file and the number of points:

This example uses Random to generate random positions within the file and reads a single byte at each random position. Adjust the code according to your specific requirements.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *