Python র্যান্ডম মডিউল (Random Module)
- Previous Page Python Keywords
- Next Page Request Module
Python-এ একটি অনান্যস্বত্ত্বকরণ তৈরি করার জন্য ব্যবহার্য নিহিত মডিউল রয়েছে。
random
মডিউলটিতে নিম্নলিখিত পদ্ধতি রয়েছে:
পদ্ধতি | বর্ণনা |
---|---|
seed() | র্যান্ডম সংখ্যা জেনারেটরকে উদ্বোধন করে。 |
getstate() | র্যান্ডম সংখ্যা জেনারেটরের বর্তমান আভ্যন্তরীণ অবস্থা ফিরিয়ে দেয়。 |
setstate() | র্যান্ডম সংখ্যা জেনারেটরের আভ্যন্তরীণ অবস্থা পুনর্বৃদ্ধি করে。 |
getrandbits() | একটি অনান্যস্বত্ত্বকরণ স্থান সংখ্যা ফিরিয়ে দেয়。 |
randrange() | দেওয়া প্রান্তদূষণের মধ্যে একটি অনান্যস্বত্ত্বকরণ সংখ্যা ফিরিয়ে দেয়。 |
randint() | দেওয়া প্রান্তদূষণের মধ্যে একটি অনান্যস্বত্ত্বকরণ সংখ্যা ফিরিয়ে দেয়。 |
choice() | দেওয়া সিরিজের মধ্য থেকে একটি অনান্যস্বত্ত্বকরণ এলিমেন্ট ফিরিয়ে দেয়。 |
choices() | দেওয়া সিরিজের মধ্য থেকে একটি তালিকা ফিরিয়ে দেয়, যার মধ্যে একটি অনান্যস্বত্ত্বকরণ বানানা নির্বাচিত হয়েছে。 |
shuffle() | একটি সিরিজ গ্রহণ করে, এবং এই সিরিজটিকে সুবাদ অনুযায়ী ফিরিয়ে দেয়。 |
sample() | সিরিজের দেওয়া নমুনা ফিরিয়ে দেয়。 |
random() | 0 এবং 1-এর মধ্যে একটি ফ্লোটিং সংখ্যা ফিরিয়ে দেয়。 |
uniform() | দুটি দেওয়া প্রান্তদূষণের মধ্যে একটি অনান্যস্বত্ত্বকরণ ফ্লোটিং সংখ্যা ফিরিয়ে দেয়。 |
triangular() | দুটি দেওয়া প্রান্তদূষণের মধ্যে একটি অনান্যস্বত্ত্বকরণ ফ্লোটিং সংখ্যা ফিরিয়ে দেয়, আপনি আরও একটি প্রান্তদূষণের মধ্যে মধ্যবিন্দুকে নির্দিষ্ট করতে পারেন। |
betavariate() | Returns a random floating-point number between 0 and 1 based on the Beta distribution (used in statistics). |
expovariate() | Returns a random floating-point number between 0 and 1 based on the exponential distribution (used in statistics), and returns a random floating-point number between 0 and -1 if the parameter is negative. |
gammavariate() | Returns a random floating-point number between 0 and 1 based on the Gamma distribution (used in statistics). |
gauss() | Returns a random floating-point number between 0 and 1 based on the Gaussian distribution (used in probability theory). |
lognormvariate() | Returns a random floating-point number between 0 and 1 based on the lognormal distribution (used in probability theory). |
normalvariate() | Returns a random floating-point number between 0 and 1 based on the normal distribution (used in probability theory). |
vonmisesvariate() | Returns a random floating-point number between 0 and 1 based on the von Mises distribution (used in directional statistics). |
paretovariate() | Returns a random floating-point number between 0 and 1 based on the Pareto distribution (used in probability theory). |
weibullvariate() | Returns a random floating-point number between 0 and 1 based on the Weibull distribution (used in statistics). |
- Previous Page Python Keywords
- Next Page Request Module