0

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/

1
Contributor
1
Reply
10
Views
4 Years
Discussion Span
Last Post by McLaren
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.