random tag

39 questions


1 answers
54 views
0
Randomize numbers excluding 3,7 out of {1,2,3,4,5,6,7,8,9,0}

Hello, everyoneHow do I randomly pick a number out of a set of natural numbers?

2 years ago

1 answers
112 views
0
Why do only similar numbers appear in rand()?

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...

2 years ago

1 answers
94 views
0
a code that draws five random characters

[a-zA-z0-9] We need a code to randomly pick 5 letters from the setCan you give me a hint?

2 years ago

1 answers
148 views
0
How do you generate integer type random numbers in a specific range?

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 ...


1 answers
114 views
0
I want to make a rock-paper-scissors program

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ㅠ


2 answers
104 views
0
I want to get a key and value pair randomly from java map

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.

2 years ago

1 answers
96 views
0
I want to randomly pick items from Python

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?

2 years ago

1 answers
63 views
0
Python random.choice()

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)...

2 years ago

1 answers
64 views
0
Where is the random function in C?

Where are the random functions provided by the standard library?Or should I get another package?

2 years ago

1 answers
98 views
0
To pull a random item out of a set

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.