C
C#β€’2y ago
wfsec

❔ please hwlp whats the python equilevant >:(

:C :C :C :C :C
var rand = new Random();
string str = "0";
const string chars = "ABCDEF0123456789";
str += new string(Enumerable.Repeat(chars, 31)
.Select(s => s[rand.Next(s.Length)]).ToArray());
return str;
var rand = new Random();
string str = "0";
const string chars = "ABCDEF0123456789";
str += new string(Enumerable.Repeat(chars, 31)
.Select(s => s[rand.Next(s.Length)]).ToArray());
return str;
15 Replies
wfsec
wfsecOPβ€’2y ago
whats the python equilevant 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭
Jayy
Jayyβ€’2y ago
this is a c# server try $python
wfsec
wfsecOPβ€’2y ago
'this is a python server'
Try $c#
SFM61319
SFM61319β€’2y ago
import random

str_ = '0'
chars = 'ABCDEF0123456789'
str_ += ''.join([random.choice(chars) for _ in range(31)])
import random

str_ = '0'
chars = 'ABCDEF0123456789'
str_ += ''.join([random.choice(chars) for _ in range(31)])
?
wfsec
wfsecOPβ€’2y ago
thank you ig ☺️
SFM61319
SFM61319β€’2y ago
Try it once
wfsec
wfsecOPβ€’2y ago
thank you mr helpful
SFM61319
SFM61319β€’2y ago
np
hiyosilver
hiyosilverβ€’2y ago
@SFM61319 Wouldn't it be better not to encourage obnoxious spammers by giving answers to questions that don't belong on this server?
SFM61319
SFM61319β€’2y ago
Hmmm, i thot giving the answer straight away and getting it over with would be better than them spamming even more for help
hiyosilver
hiyosilverβ€’2y ago
Alternatively just direct them to the appropriate server and if they insist they get politely told to leave. If you always "get it over with" you just encourage more people to do the same. Whatever, it's not my decision to make. Just my two cents.
Accord
Accordβ€’2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
RiA
RiAβ€’2y ago
It's not that hard to look up or ask what the syntax means, from the source language's server, infer the usage, and then ask the target language's server for what the equivalent of such a function is. You shouldn't encourage full code-block conversions for people unwilling to put in the minimum effort to understand.
Accord
Accordβ€’2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server