+ 6

Random number generator

Can somebody help me with random number generator programs algorithm?

1st Aug 2018, 8:15 PM
Aria Jafari
12 Answers
+ 15
Hi Aria please specify which language you would like to create this with
1st Aug 2018, 8:37 PM
bobbie
bobbie - avatar
1st Aug 2018, 8:47 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 7
You must indicate the probability's distribution of numbers that you want
3rd Aug 2018, 11:28 AM
Giuseppe Pipitò
+ 4
True.
3rd Aug 2018, 11:32 AM
Alexander Bolte
Alexander Bolte - avatar
+ 3
Hi bobbie C or Python3 please😊
1st Aug 2018, 8:40 PM
Aria Jafari
+ 3
You can use random module in python; E.g : import random numb=random.randint(0, 100) print(numb)
1st Aug 2018, 8:50 PM
Sousou
Sousou - avatar
+ 3
And you can use a list ; E.g; import random numb=[5, 8, 3] rand_numb=random.choice(numb) print(rand_numb) #number can be 5 , 8 or 3
1st Aug 2018, 8:53 PM
Sousou
Sousou - avatar
+ 3
Thank u Robin yes I'm looking for algorithms 😊
2nd Aug 2018, 5:09 PM
Aria Jafari
+ 3
You must indicate the probability's distribution of numbers that you want
3rd Aug 2018, 11:28 AM
Giuseppe Pipitò
+ 2
See My this Code Depend pn Random Numbers >>>Luck Calculator<<< https://code.sololearn.com/Wp1cOAxz3XyS/?ref=app
3rd Aug 2018, 5:51 AM
The Shiva
The Shiva - avatar
0
sory
8th Aug 2018, 11:03 PM
Abass Khlifa Musa
Abass Khlifa Musa - avatar
0
احنا
8th Aug 2018, 11:03 PM
Abass Khlifa Musa
Abass Khlifa Musa - avatar