regularpython@gmail.com
Random Numbers in Python
Python defines a set of functions that are used to generate or manipulate random numbers. This particular type of function is used in a lot of games, lotteries or any application requiring random number generation.
Randon Number Operations :
- random()
- randrange ([start,] stop [,step])
- choice(seq)
- seed([x])
- uniform(x, y) To generate a randomfloating point numberbetween 1 and 10 you can use the uniform() function
- Randint(0,10)
- Shuffle(items)
- Sample(items,1)