39 questions
Hello, everyoneHow do I randomly pick a number out of a set of natural numbers?
I don't know if seed is weird or if I pull land() I keep getting similar numbers.In my program, I'm going to write a log, so there needs to be a big differenceAlmost all of them are from 225 to 230253...
[a-zA-z0-9] We need a code to randomly pick 5 letters from the setCan you give me a hint?
You want to use Java to generate a random number of a specific range of int types.For example:You want to generate random numbers ranging from 5 to 10 with a minimum value of 5 and a maximum value of ...
I gathered examples to create a program, but I don't think it's good, so I'm asking questions.The first error that pops up is that com is definedㅠ
I used hash map to interpret English words as key and value, read one line at a time, and saved it I want to print this out randomly, but I don't know what to do.
I want to randomly pick items on the list from Python. a = [1,2,3,4,5,6,7,8,9,10]InAnything (a) sometimes 3 and sometimes 1Is there a way to make anything come out together?
import randomtime = random.randint(1,24)print (Good morning. This time is + str(time) + .)sunny = random.choice([True,False])if sunny: print (It's sunny now.)else: print (It's not sunny at the moment)...
Where are the random functions provided by the standard library?Or should I get another package?
How do I pull out random items in Set? I want to pick random elements from HashSet or LinkedSet, but I don't know how.
« | - 3 - | » |
© 2024 OneMinuteCode. All rights reserved.