Get the App
SLTechnology News&Howtos  ›  Development  › 

How python uses the uniform () function

Shulou Source: shulou.com Published: 2022-06-01 02:56:03 09月22日 Update

This article will explain in detail how python uses the uniform () function. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Uniform () function

Description: the uniform () method randomly generates the next real number, which is in the range of [x _ ray]. Returns a floating point number

Syntax:

Import randomrandom.uniform (XBI y)

Parameters:

X-the starting value in the specified range, included in the range

Y-the end value in the specified range, included in the range.

Example demonstration

> print random.uniform (5jing10); 9.13282585434 > print random.uniform (9pj10); what can 9.95958315062python do? Python is a programming language with many effective tools built in, Python is almost omnipotent, the language is easy to understand, easy to start, powerful, and has a wide range of applications in many fields, such as the most popular big data analysis, artificial intelligence, Web development and so on.

This is the end of the article on "how python uses the uniform () function". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Tags: Scope function article more language good practical powerful effective popular popular omnipotent artificial artificial intelligence content function powerful parameter instance real number Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn Xiaomi Docker MySQL