jeudi 17 octobre 2019

How to generate 32-bit integers random number from marsenne twister and fortuna algorithm in ascii file or binary file output

i need ascii or binary file output from Random Number Generator (marsenne twister and fortuna) algorithm as input for diehard test suite.

with specification:

  1. sends the (hex) output of your random number procedure from Random number generator( marsenne twister and fortuna) to an ordinary ascii file.

  2. Random number generator should produce 32-bit integers. (If 31 bits, left justify by shift-left-one, as some of the tests in DIEHARD favor leading bits.) You should send them to your ascii file in hex form, 8 hex 'digits' per integer, 10 integers per line, no intervening spaces. The ascii file will be twice as big as the binary file it is reduced to

Help me , I have been trying for a month but it hasn't worked :-(




Aucun commentaire:

Enregistrer un commentaire