Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

random in f#

let alph = "abcdefg"

let randomCh = 
    let random = Random()
    fun () -> alph.Chars (random.Next (alph.Length - 1))

printfn "%O" <| randomCh()
printfn "%O" <| randomCh()
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity post processing on UI 
Csharp :: c# how to set string list 
Csharp :: test how catch exception c# 
Csharp :: c# swap name in string 
Csharp :: how to close a form c# 
Csharp :: c# streamwriter add new line 
Csharp :: convert int32 
Csharp :: add row and columns to grid wpf in code 
Csharp :: C# select keyword lambda 
Csharp :: c# wpf get clipboard text 
Csharp :: how to add to a list only items that are not already in the list c# 
Csharp :: C# bitwise operation 
Csharp :: how to load file from resources in c# 
Csharp :: how to type to console in unity 
Csharp :: C# fileinfo creation date 
Csharp :: split lines c# 
Csharp :: Map Range Clamped unity 
Csharp :: unity2d movement 
Csharp :: defualtsize UWP c# 
Csharp :: c# make file writable 
Csharp :: c# remove substring 
Csharp :: how to uncheck a radio button in c# 
Csharp :: Commenting on C# 
Csharp :: unity camera fade to black 
Csharp :: how to have referecne to script in unity 
Csharp :: search for a substring in the registry 
Csharp :: center mouse unity 
Csharp :: how to mock http client c# 
Csharp :: check if two date ranges overlap c# 
Csharp :: listview thread error 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =