Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter random true false

Random r = new Random();
bool result = r.nextDouble() <= 0.7;
// Gives a chance of 70% to get True result.
 
PREVIOUS NEXT
Tagged: #flutter #random #true #false
ADD COMMENT
Topic
Name
4+8 =