Hello,

I want to test random generator with one program.
But I don't undertsand what my input file should look like.

You must first create the ascii file. To do that,
generate your 32-bit integers and write them to a file,
in hex format, 80 characters (ten 32-bit integers) per
line. For example in Fortran if your file is, say,
mran(5000), then the statements

  write(1,21) m
     21     format(10z8)

will cause your 5000 integers to be written to the
file designated unit 1. Of course you must have first
opened that unit with a statement such as

open(1,file='whatever')

Pause - Please enter a blank line (to continue) or a DOS command.

I tried to write numbers 1 2 3 4 5 6 7 8 9 10 and use hex editor to show them in hex. BUt there is no 80 characters from those numbers.

here is the screenshot.

http://i.snag.gy/EToWP.jpg

SO the input is wrong probably. Can you explain this?

I am using testing progra from here : http://www.stat.fsu.edu/pub/diehard/

found out later in documentation that it means 8 'digits'. If number uis not of 8 digits, zeros are adeed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.