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.
10722 times of learning
Collection18316 times of learning
Collection62303 times of learning
Collection26334 times of learning
Collection