Home > other >  Python operations
Python operations

Time:09-26

One, generating a [0, 1) uniformly distributed random number between array, containing 1000 elements, a random seed for 612, receives the user input a number between 1-100, printing group random number all the index values can be divided exactly by the input integer number, and print the serial number and index value, the serial number starting from 1, in turn, add 1. For example, 50 user input, print the array index value of 0,50,100... 1000 random Numbers,
Application example:
Please enter an integer between 1-100:50
Serial number index random number
1 0
0.14347162970307872 50 0.3228752619106986
3 100 0.39412407684983874
.
20 950 0.4658222822786575
Second,
Three,
  • Related