Home > Topic List > C language random function usage
Usage of random function in C language: 1. random.random, randomly generates a floating point number between (0,1); 2. random.randint, randomly generates an integer within the range, and the two parameters represent the upper limit and lower limit respectively; 3 , random.randrange, within the specified range, obtain a random number from the set incremented by the specified base; 4. random.choice, randomly select a number from the sequence; 5. random.shuffle, randomly sort.
10870 times of learning
Collection18707 times of learning
Collection62721 times of learning
Collection26827 times of learning
Collection