Craig Oates
6 years ago
2 changed files with 18 additions and 0 deletions
@ -0,0 +1,17 @@
|
||||
module InputGeneration |
||||
|
||||
open System |
||||
|
||||
let ValidGibberishLevelInput () = |
||||
let testInputs = [|2 .. 20|] |
||||
let index = Random().Next(0, testInputs.Length) |
||||
testInputs.[index] |
||||
|
||||
let ValidSentencesInput () = System.Random().Next(2, 10) |
||||
|
||||
let InvalidGibberishInput () = |
||||
let testInputs = Array.concat [ [|0; 1|] ; [|21 .. 100|] ] |
||||
let index = System.Random().Next(0, testInputs.Length) |
||||
testInputs.[index] |
||||
|
||||
let InvalidSentencesInput () = System.Random().Next(-5, 1) |
Loading…
Reference in new issue