473,472 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

what dose this code do exactly?

shahram555
4 New Member
Expand|Select|Wrap|Line Numbers
  1. import random
  2. for i in range(10):
  3.     x=random.triangular(1,2,3)
  4.     print(x)
Aug 11 '14 #1

✓ answered by Rabbit

It prints out 10 random numbers from a triangular distribution.

1 1440
Rabbit
12,516 Recognized Expert Moderator MVP
It prints out 10 random numbers from a triangular distribution.
Aug 11 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: snnn | last post by:
/////////////////////// #ifdef __cplusplus extern "C" { #endif //////////////////////// I often find it at c/c++ head files.
2
by: s88 | last post by:
Hi all: I saw the code likes... 7 #include <stdio.h> 8 int main(void){ 9 const char *const green = "\033[0;40;32m"; 10 const char *const normal = "\033[0m"; 11 ...
17
by: ypjofficial | last post by:
Hello All, I have read in many c++ literature that vtable is nothing but an array of pointer to virtual functions inside a class.And the class where the virtual function/s are declared stores the...
1
by: Pierre | last post by:
Hi everyone; I have a class with several members and I pin the first reference field in a function; public ref struct MyClass { String str1; List<MySubClass ^^subObjects; ....
3
by: Car | last post by:
what dose this float value mean$B!)(B The value is: -1.#IND0
5
by: moyoal | last post by:
Dear All, Anyone can tell me what this exactly in oracle applications, FND_CLIENT_INFO its a Database procedure/Function or what? thanks in advance. moyoal
2
by: Debbie Stevens | last post by:
What html code do I use to offer viewers of my webpage different text sizes?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.