-1

Here is the code:

import random


def random_gen():
    return f".type('ffi{random.randint(1, 22)}-{random.randint(1000000, 9999999)}')"


for _ in range(5559999):
    print(random_gen())
PaxPrz
  • 1,778
  • 1
  • 13
  • 29
Admin
  • 13
  • 2
  • 1
    Please repeat [on topic](https://stackoverflow.com/help/on-topic) and [ask] from the [tour]. "Teach me this basic language feature" is off-topic for Stack Overflow. You have to make an honest attempt at the solution, and then ask a _specific_ question about your implementation. Stack Overflow is not intended to replace existing tutorials and documentation. – TigerhawkT3 Apr 09 '21 at 12:07

1 Answers1

0

You can use the sys library and write random gen to a file. Like the second answer in this thread: Redirect stdout to a file in Python?

Go0fy
  • 16
  • 3