What do you want to save?
Add Code snippet
New code examples
-
C# 2022-01-23 06:41:06
how to generate random letters in C#
private static Random random = new Random(); public static string RandomString(int length) { const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; return new string(Enumerable.Repeat(chars, length) .Select(s => s[random.N... Add solution -
Other 2021-11-08 02:08:11
how to generate a random hexadecimal value in c
#include <time.h> #include <stdio.h> #include <stdlib.h> int main(void) { int length; char str[] = "0123456789ABCDEF"; /* Seed number for rand() */ srand((unsigned int) time(0) + getpid()); length = rand()... Add solution -
Java 2021-11-06 02:17:13
hadoop in mapper combiner
public static class Map extends Mapper<Object, Text, Text, IntWritable> { Map count = new HashMap<Integer, Integer>(); public void map(Object key, Text value, Context context) throws IOException, InterruptedException { StringT... Add solution